Zum Inhalt springen

Schrift ändern

Erstellt am 5. Juli 2006 · 4 Antworten · letzte Antwort am 6. Juli 2006

Tags: Frage

dreg ·

Hallo,

wo kann ich die Schriftart der Seitenüberschrift verändern.

Grüße
Gerd

Proximo ·

Super-schnell-komplett-Tutorial zum Thema "Wie kann ich eine Seitenüberschrift ändern"

Hier sind alle (mir bekannten) Möglichkeiten aufgelistet *g*

Typoskript - Setup

lib.stdheader >
lib.stdheader = CASE
lib.stdheader {
   key.field = header_layout

   0 = TEXT
   0.field = header
   0.wrap = <h3>|</h3>
   0.stdWrap.fieldRequired = header
   0.wrapAlign.field = header_position
   0.typolink.parameter.field = header_link

   1 = TEXT
   1.field = header
   1.wrap = <span class="h1">|</span>
   1.stdWrap.fieldRequired = header
   1.wrapAlign.field = header_position
   1.typolink.parameter.field = header_lin

...

   100.stdWrap.fieldRequired = header
   100 = IMAGE
   100.file = GIFBUILDER
   100.file {
      transparentBackground = 1
      XY = [10.w] +10, 37
      backColor = #061944
      10 = TEXT
      10.text.field = header
      10.fontColor = #061944
      10.fontFile = fileadmin/fonts/verdana.ttf
      10.fontSize = 22
      10.offset = 0, 22
      10.niceText = 0
   }
   100.wrap = |
   100.wrapAlign.field = header_position
   100.typolink.parameter.field = header_link

   default < .1
   default.wrap = |
}

tmp_tt_content_text < tt_content.text
tt_content.text >
tt_content.text = COA
tt_content.text.10 < lib.stdheader
tt_content.text.20 = TEXT
tt_content.text.20 {
  field = bodytext
  fieldRequired = bodytext
  wrap = <font face="Arial" size="2">|</font>
  parseFunc < tmp_tt_content_text.20.parseFunc
  editIcons < tmp_tt_content_text.20.editIcons
}

TSconfig:

TCEFORM.tt_content.header_layout {
 header_layout Available types:
 header 0 = 0
 header 1 = 1

...

 header 6 = 100

# Default setzen
setup.defaults = 0
altLabels.0 = normal
altLabels.1 = fett weiss 12px

...

altLabels.100 = grafisch dunkelblau
disableNoMatchingValueElement = 0

# Unnötigen Layouts entfernt
removeItems = 0,1
}

Und... nicht zu vergessen... über CSS bzw H-Elemente oder DIV's (was dir warscheinlich reichen wird^^)

MFG Proximo

Honk88 ·
Niki schrieb

im CSS-file

weil in Kategorie 'Anfängerfragen' gepostet
pack ich nochmal nen Beispiel-Code dran :

P, OL, UL, DIV, H1, H2 {
	font-family: verdana, arial;
	font-size: 11px;
}
H1 { font-size: 12px; }
H2 { font-size: 13px; }
P, H1, H2, {margin: 0px 0px 5px 0px;}

wenn dir das klar war einfach überlesen :p

LG
Honk