hi...........
mein problem ist das ich immer eine graue seite bekomme
mein templat
[HTML<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Unbenanntes Dokument</title>
</head>
<body>
<!-- ###DOCUMENT_BODY### start -->
<table width="732" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="732" height="107" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="174" height="107" valign="top"> ###LOGO###</td>
<td width="374"> </td>
<td width="184" valign="top"> ###LOGO1</td>
</tr>
</table></td>
</tr>
<tr>
<td height="479" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="174" height="440" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="174" height="24" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="174" height="24"> </td>
</tr>
</table></td>
</tr>
<tr>
<td height="32" valign="top"><!--DWLayoutEmptyCell--> ###LEFTNAV###</td>
</tr>
<tr>
<td height="384"> </td>
</tr>
</table></td>
<td width="375"> </td>
<td width="183" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="183" height="25" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="183" height="25"> </td>
</tr>
</table></td>
</tr>
<tr>
<td height="415"> </td>
</tr>
</table></td>
</tr>
<tr>
<td height="39" colspan="3" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="732" height="39"> </td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
<!-- ###DOCUMENT_BODY### end -->
</body>
</html>
mein setup
seite = PAGE
seite.typeNum = 0
seite.stylesheet = fileadmin/style.css
seite.bodyTag = <body bgcolor="fffdee">
seite.10 = TEMPLATE
seite.10 {
template = FILE
template.file = fileadmin/template.html
workOnSubpart = DOCUMENT_BODY
marks.INHALT < styles.content.get
}
meine frage: was muss ich machen, wo ligt mein fähler
__DNAKE__
Der Marker ###INHALT### ist in deinem Template nicht definiert. Siehe Zeile 10 deines TS...
adventuremaker schrieb
Der Marker ###INHALT### ist in deinem Template nicht definiert. Siehe Zeile 10 deines TS...
ich glaube nicht das, das fähler ist ich kann Marker ###INHALT### rausnehmen
tonik schrieb
ich glaube nicht das, das fähler ist ich kann Marker ###INHALT### rausnehmen
Ja doch, du spricht ihn ja in deinem TypoScript-Code an.
Du kannst nur Marker ansprechen, die auch in deinem (HTML-)Template stehen. In deinem Fall könntest du ###LOGO### und ###LEFTNAV### über marks ansprechen.
Versuchs mal!
tonik schrieb
adventuremaker schrieb
Der Marker ###INHALT### ist in deinem Template nicht definiert. Siehe Zeile 10 deines TS...
ich glaube nicht das, das fähler ist ich kann Marker ###INHALT### rausnehmen
Vermutlich hast Du den Hinweis nicht wirklich verstanden.
1. KEINEM der Marker in Deinem Template weist Du etwas zu
2. Den einzigen Marker dem Du etwas zuweist gibt es nicht
3. Der Marker LOGO1 ist nicht korrekt definiert
Resultierend aus 1 & 2 wird also schon mal definitiv nichts ausgegeben. Da in diesem Fall allerdings im Browserfenster ###LOGO###, ###LOGO1 und ###LEFTNAV### stehen.
Falls dies nicht der Fall ist sag ich einfach mal, dass es die template.html entweder:
a. nicht gibt
b. nicht in diesem Pfad gibt
c. Du keinen Zugriff darauf hast
adventuremaker schrieb
tonik schrieb
ich glaube nicht das, das fähler ist ich kann Marker ###INHALT### rausnehmen
Ja doch, du spricht ihn ja in deinem TypoScript-Code an.
Du kannst nur Marker ansprechen, die auch in deinem (HTML-)Template stehen. In deinem Fall könntest du ###LOGO### und ###LEFTNAV### über marks ansprechen.
Versuchs mal!
ich habe eine neue Marker andelegt
seite = PAGE
seite.typeNum = 0
seite.stylesheet = fileadmin/style.css
seite.bodyTag = <body bgcolor = "ff56ee">
seite.10 = TEMPLATE
seite.10 {
template = FILE
template.file = fileadmin/template.html
workOnSubpart = DOCUMENT_BODY
10.marks.TRAILER = TEXT
10.marks.TRAILER.value = TEST TEST TEST
}
es soll mir in der stelle TEST TEST TEST anzeigen.
es zeigt mir immer noch eine graue seite
ok ich habs ein bissien geänder
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Unbenanntes Dokument</title>
</head>
<body>
<!-- ###DOCUMENT_BODY### start -->
<table width="732" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="732" height="107" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="174" height="107" valign="top"> ###LOGO###</td>
<td width="374" valign="top"> ###TRAILER###</td>
<td width="184" valign="top"> </td>
</tr>
</table></td>
</tr>
<tr>
<td height="479" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="174" height="440" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="174" height="24" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="174" height="24"> </td>
</tr>
</table></td>
</tr>
<tr>
<td height="32" valign="top"> ###LEFTNAV###</td>
</tr>
<tr>
<td height="384"> </td>
</tr>
</table></td>
<td width="375"> </td>
<td width="183" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="183" height="25" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="183" height="25"> </td>
</tr>
</table></td>
</tr>
<tr>
<td height="415"> </td>
</tr>
</table></td>
</tr>
<tr>
<td height="39" colspan="3" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="732" height="39"> </td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
<!-- ###DOCUMENT_BODY### end -->
</body>
</html>
seite = PAGE
seite.typeNum = 0
seite.stylesheet = fileadmin/style.css
seite.bodyTag = <body bgcolor = "ffeeee">
seite.10 = TEMPLATE
seite.10 {
template = FILE
template.file = fileadmin/template.html
workOnSubpart = DOCUMENT_BODY
10.marks.TRAILER = TEXT
10.marks.TRAILER.value = TEST TEST TEST
10.marks {
LOGO = IMAGE
LOGO.file = fileadmin/images/drache1
}
ich bekomme nixt angezeigt ause eine graue seite
Jetzt aber! #angry# Der Marker, den du mit deinem TypoScript ansprichst (jetzt TRAILER), muss auch in der Datei "fileadmin/template.html" existieren.
Und solange du den da nicht in dem Format ###TRAILER### anlegest, wird auch nix ausgegeben. Wo nix is, kann auch nix ausgegeben werden. Und wenn du noch hundert Marker, die nicht existieren anzusprechen versuchst...
Lies dir doch mal die Beiträge durch! Matthias hat das doch nun echt schon ausführlich genug ausgeführt... 😉