Zum Inhalt springen

Graphikbuttons erscheinen ohne Text

Erstellt am 25. August 2004 · 5 Antworten · letzte Antwort am 7. September 2004

Tags: Frage

haiopei ·

Hallo!

Ich bin gerade bei der Erstellung eines Graphikmenüs.

Mit meinem Template werden Buttons erzeugt, die aber nur aus der Hintergrundfarbe bestehen, also den Seitentitel nicht anzeigen.

Übrigens: Ein Textmenü lässt sich erstellen.

Hier ist mein Template:

seite = PAGE
seite.typeNum = 0
seite.bodyTag = <body bgcolor="red">
seite.10 = TEMPLATE
seite.10 {
template = FILE
template.file = {$designvorlage}
workOnSubpart = DOKUMENT
}
seite.10.marks.INHALT < styles.content.get

seite.10.marks.MENUE = HMENU
seite.10.marks.MENUE.1 = GMENU
seite.10.marks.MENUE.1.NO {
backColor = #0000ff
XY = 150, 30
10 = TEXT
10.text.field = title
10.fontFile = fileadmin/comic.ttf
10.fontSize = 12
10.offset = 10,10
10.fontColor = #ff0000
}

Ist irgendetwas am Template falsch oder kann es an den Einstellungen von Typo3 bzw. der Arbeitsumgebung liegen?

Viele Grüße
Thomas

nunsi ·

Bei mir funktionierts...
und zwar folgendermaßen:

seite = PAGE 
seite.typeNum = 0 
seite.bodyTag = 
seite.10 = TEMPLATE 
seite.10 { 
template = FILE 
template.file = fileadmin/templates/template.html
workOnSubpart = DOKUMENT 
} 
seite.10.marks.INHALT < styles.content.get 


seite.10.marks.SUBNAV = HMENU 
seite.10.marks.SUBNAV.1 = GMENU 
seite.10.marks.SUBNAV.1.NO { 
backColor = #0000ff 
XY = 150, 30 
10 = TEXT 
10.text.field = title 
10.fontFile = fileadmin/comic.ttf 
10.fontSize = 12 
10.offset = 10,10 
10.fontColor = #ff0000 
}

Hab nur die Templateeinstellungen angepasst....
poste mal dein Template....

haiopei ·

Hi Nunsi!

Dein Template ist doch mit Ausnahmen der Markernamen das Gleiche.

Was hast du an den Templateeinstellungen angepasst?

Grüße
Thomas

nunsi ·

Ich meinte, dass ich nur

template.file = fileadmin/templates/template.html

angepasst hab, daher wollte ich deinen HTML-Code sehn... bei mir läuft dein script einwandfrei, kann dir gern nen screenshot schicken...

keule80 ·

Hallo...

ich versuch es einfach noch mal über diesen Eintrag. Also ich hab das gleiche Problem. Der Code ist fast der selbe und wie es scheint astrein. Aber der Title auf dem erzeugten Background wird nicht angezeigt. Ich kann machen was ich will. Hier mein Code:

seite = PAGE
seite {
typeNum = 0
stylesheet = fileadmin/style.css
bodyTag = <body bgColor = "#FFFFFF" leftmargin = "0" marginheight = "0" marginwidth = "0" rightmargin = "0">
meta.AUTHOR = Denise Schönenberger
meta.DISCRIPTION = NewAgeCoaching - Mediale Beratung

10 = TEMPLATE
10.template = FILE
10.template.file = fileadmin/design_NewAgeCoaching.html
10.workOnSubpart = DOKUMENT
10.marks {
TRAILER = TEXT
TRAILER.valuee = Hier steht der Trailertext

MENU_OBEN = HMENU
MENU_OBEN.special = directory
MENU_OBEN.special.value = 2
MENU_OBEN.1 = TMENU
MENU_OBEN.1.NO = 1
MENU_OBEN.1.NO.ATagParams = class="oben"
MENU_OBEN.1.NO.fontColor = #FFFFFF
MENU_OBEN.1.NO.linkWrap = &nbsp;|&nbsp;&#124; |*| &nbsp;|&nbsp;&#124; |*| &nbsp;|

MENU_LINKS = HMENU
MENU_LINKS.special = directory
MENU_LINKS.special.value = 3
MENU_LINKS.1 = GMENU
MENU_LINKS.1.NO = 1
MENU_LINKS.1.NO {
XY = 161, 20
backColor = #D73D3D

10 = TEXT
10.text.field = title
10.fontColor = #FFFFFF
10.fontFile = fileadmin/font/arial.ttf
10.fontSize = 12
10.niceText = 1
10.offset = 7,21
}
}
}

Der Ordner font ist mit der ttf vorhanden und ansonsten sollte auch alles ok sein. Ich bin schon am verzweifeln und hoffe auf euere Hilfe. Danke.

MfG
Dennis