Zum Inhalt springen

Es wird kein Inhalt angezeigt?!

Erstellt am 25. Februar 2007 · 4 Antworten · letzte Antwort am 25. Februar 2007

Tags: Inhaltselemente, Frage

schohmik ·

Ich versuche mich an meiner ersten Website mit Typo3 und bin an einem Punkt, wo ich einfach nicht weiterkomme: Es wird kein INHALT ausgegeben, obwohl in der HTML-Vorlage der Platzhalter ###INHALT### vorhanden ist und natürlich auch Inhalts-Seiten erstellt wurden.

****************************************
Hier das Typoscript-Template:

****************************************

page = PAGE
page {
typeNum = 0
# Allgemeine Seiteneigenschaften setzen
bodyTag = <body bgcolor="#FFFFFF" topmargin="0" leftmargin="0">
meta.AUTHOR = Robert Meyer
meta.DESCRIPTION = Hier steht eine Beschreibung
stylesheet = fileadmin/style.css

# Die Designvorlage integrieren
10 = TEMPLATE
10.template = FILE
10.template.file = fileadmin/vorlage.html
10.workOnSubpart = DOKUMENT


10.marks {
# Den Platzhalter DATUM ansprechen
DATUM = TEXT
DATUM.data = date : d.m.y

# Das Logo einlesen
LOGO = IMAGE
LOGO.file = fileadmin/images/logo.jpg
LOGO.file.width = 178

# Den Trailer dynamisch ansprechen
TRAILER = IMAGE
TRAILER.file = GIFBUILDER
TRAILER.file {.
XY = 759, 99
backColor = #FFFFFF


# Das Hintergrundbild einlesen
10 = IMAGE
10.file.import = uploads/media/
10.file.import.data = levelmedia:-1, slide
10.file.import.listNum = 0
10.file.width= 759
10.offset = 0, -150

# Den Verlauf einarbeiten
20 = IMAGE
20.file = GIFBUILDER
20.file.backColor = #FFFFFF
20.file.XY = 759, 99
20.mask = fileadmin/images/mask.jpg

# Text auf Trailer rendern
30 = TEXT
30.text.field = subtitle // title
30.fontFile = fileadmin/fonts/verdana.ttf
30.fontSize = 24
30.fontColor = #364497
03.niceText = 1
30.offset = 10, 85

}

# Den Platzhalter Klickpfad ansprechen
# Object COA wird zwischengeschaltet, um einen
# zusätzlichen text angeben zu können
KLICKPFAD = COA
KLICKPFAD {
# der vorgeschaltete Text
10 = TEXT
10.value = Sie befinden sich:

# Den Klickpfad an Position 20 darstellen
20 = HMENU
20 {
special = rootline
special.range = 2|-1
1 = TMENU
1.NO = 1
1.NO.linkWrap = | /
}
}
# Das Textmenü oben erstellen
MENU_OBEN = HMENU
MENU_OBEN {
special = directory
special.value = 3
1 = TMENU
1.NO = 1
1.NO.linkWrap = | | |*| | | |*| |

}

# Das grafische Menü erstellen
MENU_LINKS = HMENU
MENU_LINKS {
wrap = <img src="fileadmin/images/linie_weiss.gif" width="178" height="1" alt="" /><br />|
special = directory
special.value = 8
entryLevel = 1
1 = GMENU
1.NO = 1
1.NO {
wrap = |<br />
XY = 178, 24+[16.h]
backColor = #364497


# Die zweite Ebene als Kopie der ersten Ebene beschreiben
2 < .1
2.NO {
backColor = #D3E2F9
10.fontColor = #061467
10.fontSize = 11
}
2.RO < .2.NO
2.RO.backColor = #C1D5F4


# Text auf den Menüpunkt rendern
10 = TEXT
10.text.field = title
10.text.listNum = 0
10.text.listNum.splitChar = |
10.fontColor = #FFFFFF
10.fontFile = fileadmin/fonts/verdana.ttf
10.fontSize = 12
10.niceText = 1
10.offset = 14, 16

# Eine ggfs. vorhandene zweite textzeile
15 < .10
15.text.listNum = 1
15.offset = 14, 32

#Hilfsebene zur Berechnung der Höhe in Menüpunkten
16 < .10
16.text.case = upper
16.text.listNum = 1
16.fontSize = 22
16.offset = 1000,1000

# Eine weisse Linie erzeugen
20 = IMAGE
20.file = GIFBUILDER
20.file {
XY = 178,1
backColor = #FFFFFF
}
20.offset = 0, 23+[16.h]
}

# Einen RollOver-Zustand beschreiben
1.RO < .1.NO
1.RO.backColor = #061467

# Die zweite Ebene als Kopie der ersten Ebene beschreiben
2 < .1
2.NO {
backColor = #D3E2F9
10.fontColor = #061467
10.fontSize = 11
}
2.RO < .2.NO
2.RO.backColor = #C1D5F4

# Inhalt ausgeben
INHALT = CONTENT
INHALT {
table = tt_content
}

}
}

****************************************
Hier HTML-Vorlage

****************************************

<html>

<head>
<title>Vorlage Snowboardschule Meyer-Mueller-Schmidt</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<link rel="stylesheet" type="text/css" href="fileadmin/style.css" />
</head>

<body topmargin="1" leftmargin="1">

<!-- ###DOKUMENT### begin -->

<table border="0" width="937" cellspacing="0" cellpadding="0">
<tr>
<td width="100%">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top" align="left">###LOGO###</td>
<td valign="top" align="left">###TRAILER###</td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="100%" bgcolor="#061467" valign="middle" align="right">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top" align="right" width="927" class="menu_oben">
###MENU_OBEN###
</td>
<td valign="top" align="right" width="10">
<img src="clear.gif" width="10" height="22" alt="" />
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="100%">
<table border="0" width="937" cellspacing="0" cellpadding="0">
<tr>
<td valign="top" align="left" width="178" bgcolor="#364497">
<img src="clear.gif" width="1" height="50" alt="" /><br />
###MENU_LINKS###<br />
<br />
###SUCHE###
</td>
<td valign="top" align="left" width="10">
<img src="clear.gif" width="1" height="1" alt="" />
</td>
<td valign="top" align="left" width="533">
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="533" valign="top" align="left">
<table width="533" cellspacing="0" cellpadding="0">
<tr>
<td valign="top" align="left" width="532" class="inhalt_oben">
###DATUM### :: ###SPRACHE### :: ###DRUCKVERSION###<br />
###KLICKPFAD###
</td>
<td valign="top" align="left" width="1">
<img src="clear.gif" width="1" height="50" alt="" />
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="533" valign="top" align="left" class="inhalt">
###INHALT###
</td>
</tr>
</table>
</td>
<td valign="top" align="left" width="10">
<img src="clear.gif" width="1" height="50" alt="" />
</td>
<td valign="top" align="left" width="10" bgcolor="#D3E2F9">
<img src="clear.gif" width="10" height="1" alt="" />
</td>
<td valign="top" align="left" width="186" bgcolor="#D3E2F9" class="inhalt">
<img src="clear.gif" width="1" height="50" alt="" /><br />
###RECHTS###
</td>
<td valign="top" align="left" width="10" bgcolor="#D3E2F9">
<img src="clear.gif" width="10" height="1" alt="" />
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="100%" bgcolor="#061467">
<img src="clear.gif" width="1" height="1" alt="" />
</td>
</tr>
</table>

<!-- ###DOKUMENT### end -->

</body>
</html>

******************************************

Ich weiß, daß es 1 geschlossene Klammer weniger gibt als geöffnete, aber ich weiß nicht, wo ich noch eine einsetzen muß; alle bisherigen Versuche sind gescheitert.

Es wäre toll, wenn jemand helfen könnte!
Danke schonmal im Voraus!

Michaelh74 ·

Ändere mal das

INHALT = CONTENT
INHALT {
table = tt_content
}

in das

INHALT < styles.content.get

Wichtig!: Unter "Click here to edit whole template record" unbedingt das css_styled_content einfügen.

Dann klappt das auch ;-)

Gruß
Michael

schohmik ·

Ich habe Deinen Vorschlag übernommen, Michael; danke dafür.
Die eigentliche Ursache war aber eine fehlende geschweifte schliessende Klammer an der Stelle

2.RO.backColor = #C1D5F4

}

Leider gibt es ja meines Wissens keinen Syntx-Checker für Typoscript; dadurch kann die Fehlersuche natürlich ziemlich zeit- und nerv-raubend sein.

Manfred

Michaelh74 ·

Wenn Du im Template Modul auf TypoScript Object Browser oder Template Analyzer (weiß jetzt nicht mehr genau welches bin beiden) gehst bekommst Du genau solche Fehler angezeigt.

Gruß
Michael