Zum Inhalt springen

Ich bekomme nur eine weiße Seite ausgegeben

Erstellt am 24. September 2006 · 4 Antworten · letzte Antwort am 25. September 2006

Tags: Templates & Layouts, Frage

bjoernbertram ·

Hallo, ich sehe wahrscheinlich den Wald vor lauter Bäumen nicht - vielleicht kann ihn mir jemand zeigen:

Ich bin gerade dabei, eine neue Webseite mit Typo3 zu realisieren und habe im Template-Setup folgende Zeilen eingegeben:
page = PAGE
page {
bodyTag = <body>
meta.AUTHOR = Björn Bertram
meta.DESCRIPTION = Text
}
10 = TEMPLATE
10.template = FILE
10.template.file = fileadmin/design2.html
10.workOnSubpart = DOKUMENT

Wenn ich dann auf die Vorschau gehe, müsste ich ja das Layout der webweite sehen - oder? Doch leider erhalte ich nur eine weiße Seite (link: http://kjr-wiz.de). Was mache ich falsch?! Vielen Dank im Voraus

einpraegsam.​net ·
bjoernbertram schrieb

page = PAGE
page {
bodyTag = <body>
meta.AUTHOR = Björn Bertram
meta.DESCRIPTION = Text
}
10 = TEMPLATE
10.template = FILE
10.template.file = fileadmin/design2.html
10.workOnSubpart = DOKUMENT

Das ist dein HTML Template:

<body topmargin="0" leftmargin="0" bgcolor="#00FF00">
###DOKUMENT###
<p><b><i><font face="Verdana" size="5" color="#000000">Kreisjugendring
            Witzenhausen e.V.</font></i></b></p>
            <p align="right"><font color="#000000">###NAVIGATION_OBEN###</font>
<p><font face="Verdana" size="2" color="#260D66">###MENU_LINKS###</font>

</p>
<p><font face="Verdana" color="#260D66" size="1">###INHALT###</font></p>
</body>

Probiers mal so:

<!-- ###DOKUMENT### start -->
<p><b><i><font face="Verdana" size="5" color="#000000">Kreisjugendring
            Witzenhausen e.V.</font></i></b></p>
            <p align="right"><font color="#000000">###NAVIGATION_OBEN###</font>
<p><font face="Verdana" size="2" color="#260D66">###MENU_LINKS###</font>

</p>
<p><font face="Verdana" color="#260D66" size="1">###INHALT###</font></p>
<!-- ###DOKUMENT### stop -->
bjoernbertram ·

Hallo wunschtacho,
danke für den Tipp, hat aber leider nicht geholfen. Eigentlich sieht die Desginvorlage, wie ich sie haben will, im HTML so aus:

<html>

<head>
<title>Designvorlage für typo3</title>
</head>



###DOKUMENT###


<table border="0" width="100%" cellspacing="0" cellpadding="0" height="96">
  <tr>
    <td width="796" background="images/kopf1.gif" height="96">
      <table border="0" width="796" height="92" cellspacing="0" cellpadding="0">

        <tr>
          <td width="174" height="40"></td>
          <td colspan="5" height="40"><b><i><font face="Verdana" size="5" color="#000000">Kreisjugendring
            Witzenhausen e.V.</font></i></b></td>
        </tr>
        <tr>
          <td width="174" height="26"></td>
          <td height="26"></td>
          <td height="26"></td>

          <td height="26"></td>
          <td height="26"></td>
          <td height="26"></td>
        </tr>
        <tr>
          <td width="174" height="26"></td>
          <td height="26" colspan="5">
            <p align="right"><font color="#000000">###NAVIGATION_OBEN###</font></td>

        </tr>
      </table>
    </td>
    <td height="96" width="364"></td>
  </tr>
</table>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
  <tr>
    <td width="161" background="images/links1.gif" valign="top"><font face="Verdana" size="2" color="#260D66"><br />
      ###MENU_LINKS###</font>

      <p> </p>
      <p> </p>
      <p> </p>
      <p> </p>
      <p> </p>
      <p> </p>
      <p> </p>
      <p> </p>
      <p> </p>

      <p> </p>
      <p> </p>
      <p> </p>
      <p> </p>
      <p> </p>
      <p> </p>
      <p> </p>
    </td>
    <td valign="top"> 

      <table border="0" width="100%" cellspacing="0" cellpadding="0">
        <tr>
          <td width="10"></td>
          <td><font face="Verdana" color="#260D66" size="1"><i>###INHALT###</i></font></td>
          <td width="10"></td>
        </tr>
        <tr>
          <td width="10"></td>

          <td>
            <p align="right"><font face="Verdana" color="#260D66" size="1"><i><br />
            ###FUSS###</i></font></td>
          <td width="10"></td>
        </tr>

      </table>
    </td>
    <td width="150" valign="top">

      <table border="0" cellspacing="0" cellpadding="0" width="149">
        <tr>
          <td width="100%" background="images/rechts_news2.gif" height="81"> </td>
        </tr>
        <tr>
          <td width="100%" background="images/rechts_news_hg2.gif">
            <p align="center"><font face="Verdana" size="2" color="#260D66">###NEWSS###</font></p>
          </td>

        </tr>
        <tr>
          <td width="100%" background="images/rechts_oben2.gif" height="81"> </td>
        </tr>
        <tr>
          <td width="100%" background="images/rechts_hg2.gif">
            <p align="center"><font face="Verdana" size="2" color="#260D66">###MENU_RECHTS###</font></p>
          </td>

        </tr>
        <tr>
          <td width="100%" background="images/rechtsunten.gif" height="37"><p> </p></td>
        </tr>
        <tr>
          <td width="100%"></td>
        </tr>
        <tr>

          <td width="100%"></td>
        </tr>
        <tr>
          <td width="100%"></td>
        </tr>
      </table>
    </td>
  </tr>
</table>

</html>
Nicklas ·

im moment steht "DOKUMENT" als Marker (Form ###MARKER###) da. Du hast aber im Template geschrieben es wäre ein Subpart.
Deswegen musst du den Marker in einen Subpart ändern: von ###DOKUMENT### in <!-- ###DOKUMENT### start --> genau wie es wunschtacho geschrieben hat... dann am Ende wieder den subpart mit <!-- ###DOKUMENT### end --> beenden.

Gruß