Zum Inhalt springen

neue seite erstellen

Erstellt am 30. April 2004 · 5 Antworten · letzte Antwort am 30. April 2004

Tags: Frage

timboj1708 ·

guten morgen,

ich habe versucht mir ein template und eine seite zu erstellen.
mein HTML:

<html>


<body>

<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" 

bordercolor="#111111" width="100%" id="AutoNumber1" height="1" align="left">
  <tr>
    <td width="100%" height="86" colspan="3" bgcolor="#99CCFF" valign="top">
    ###DOKUMENT###</td>
  </tr>
  <tr>
    <td width="100%" height="35" colspan="3" bgcolor="#99CCFF" valign="top">
    ###EMAIL######TOPNAV###</td>
  </tr>
  <tr>
    <td width="19%" height="358" bgcolor="#FFFFFF" valign="top">###LEFTNAV###
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</td>
    <td width="60%" height="358" valign="top">###CONTENT###</td>
    <td width="21%" height="358" bgcolor="#396BA5" valign="top">###RIGHTNAV###</td>
  </tr>
  <tr>
    <td width="100%" height="34" bgcolor="#FFFFFF" colspan="3" valign="top">
    <p align="left">###DOKUMENT###</p>
    <p align="left"><i><font size="2">© 2004 </font></i></td>
  </tr>
</table>

</body>

</html>

ich denke das kann man so lassen oder? ist zwar nicht sehr hübsch aber es soll ja auch nur ein test sein.

ok dann gehts in meine root seite und ein neues template erstellen.

im setup feld hab ich folgendes eingetragen:

seite = PAGE
seite.typeNum = 0
seite.bodyTag = <body bgcolor = "white">
seite.20 = TEMPLATE
seite.20 {
template = FILE
template.file = fileadmin/templates/template.html
workOnSubpart = DOKUMENT
marks.CONTENT = TEXT
marks.CONTENT.value = Hallo Welt!
}

leider bekomme ich da nur eine leere weisse seite angezeigt,
was ist mein fehler?

danke

doku ·

nimm mal dieses hier

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

<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" 

bordercolor="#111111" width="100%" id="AutoNumber1" height="1" align="left"> 
  <tr> 
    <td width="100%" height="86" colspan="3" bgcolor="#99CCFF" valign="top"> 
    ---</td> 
  </tr> 
  <tr> 
    <td width="100%" height="35" colspan="3" bgcolor="#99CCFF" valign="top"> 
    ###EMAIL######TOPNAV###</td> 
  </tr> 
  <tr> 
    <td width="19%" height="358" bgcolor="#FFFFFF" valign="top">###LEFTNAV### 
    <p>&nbsp;</p> 
    <p>&nbsp;</p> 
    <p>&nbsp;</td> 
    <td width="60%" height="358" valign="top">###CONTENT###</td> 
    <td width="21%" height="358" bgcolor="#396BA5" valign="top">###RIGHTNAV###</td> 
  </tr> 
  <tr> 
    <td width="100%" height="34" bgcolor="#FFFFFF" colspan="3" valign="top"> 
    <p align="left">---</p> 
    <p align="left"><i><font size="2">© 2004 </font></i></td> 
  </tr> 
</table> 

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

alles was zwischen <!--###DOKUMENT###--> steht ist der subpart...

und dann solltest du dir unbedingt die dokumentationen, bzw. die tutorials reinziehen, da kannst du dich an beispielen stück für stück reindenken.

timboj1708 ·

ahh es lag also an den kommentaren oder hast du sonst noch was verändert? nein oder?
ich bin ja gerade bei den diversen template tutorials.

danke für die schnelle hilfe

doku ·
timboj1708 schrieb

...oder hast du sonst noch was verändert? nein oder?

?

na dann nimm mal dein "altes" template und setz nur die kommentare um ###DOKUMENT###... 😉

timboj1708 ·

ok schon klar,

das stand in der doku, die ich hab

Der Subpart-Beginn und das Subpart-Ende DÜRFEN in Kommentaren stehen

dürfen heisst ja nicht müssen, komisch!!

timboj1708 ·

ich weiss dass ich nerve, aber ich komm mit den dokus einfach nicht richtig weiter,
ich will jetzt in LEFTNAV ein menü erstellen.
wie fange ich das jetzt an
so:

seite.10.marks.LEFTNAV = HMENU

oder ist das nicht richtig,
danke