[TYPO3] what's going wrong here

Roelof Wobben rwobben at hotmail.com
Thu Mar 29 17:41:56 CEST 2007


Hoi,

I try to follow this tutorial  tutorial Modern Template building with my own 
template

The template looks like this :

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="res/stylesheet.css" rel="stylesheet" type="text/css">
</head>
<body>
<!-- ###DOCUMENT_BODY### -->
<table border="0" align="center" cellpadding="0" cellspacing="0" 
id="container">
  <tr>
     <!-- ###INSIDE_HEADER### -->
      <td><img src="images/header.jpg" width="750" height="355"></td>
      <!-- ###INSIDE_HEADER### -->
  </tr>
  <tr>
    <td height="458" valign="top">
        <table width="100%" border="0" cellpadding="0" cellspacing="0" 
id="container2">
        <tr>
          <td width="195" height="29" valign="top">&nbsp;</td>
          <td width="425" valign="bottom" id="title">Hier komt de 
paginatitel</td>
          <td width="130" valign="bottom" id="date">20-03-2007</td>
          </tr>
        <tr>
          <td rowspan="2" valign="top" id="menu">
            <a href="#">Menu item nummer 1</a> <br>
            <a href="#">Menu item nummer 2</a><br>
            <a href="#">Menu item nummer 3</a></td>
           <td height="277" colspan="2" valign="top" id="content"><p>Hoera, 
het is zover, eindelijk zwanger. De test laat niets te twijfelen over. Ik 
ben net een stuiterbal, blij en energie voor tien. Ondanks het prille begin, 
heb ik een goed gevoel over deze zwangerschap. Waarom? geen idee. Het voelt 
gewoon goed. Het is moeilijk om &#8217;s middags mijn mond dicht te houden 
als ik met mijn zus in de stad ben. Het is maar goed dat er een 
carnavalsoptocht is, het geeft een beetje afleiding. </p>
            <p>Hoera, het is zover, eindelijk zwanger. De test laat niets te 
twijfelen over. Ik ben net een stuiterbal, blij en energie voor tien. 
Ondanks het prille begin, heb ik een goed gevoel over deze zwangerschap. 
Waarom? geen idee. Het voelt gewoon goed. Het is moeilijk om &#8217;s 
middags mijn mond dicht te houden als ik met mijn zus in de stad ben. Het is 
maar goed dat er een carnavalsoptocht is, het geeft een beetje afleiding. 
Hoera, het is zover, eindelijk zwanger. De test laat niets te twijfelen 
over. </p>
            <p>&nbsp;</p>
            <p><strong>Download <a 
href="../tamarawobben.zip">tamarawobben.zip</a></strong></p>
            <p>&nbsp;</p>
           </td>
        </tr>
        <tr>
          <td colspan="2" valign="top" id="nav"><a href="#"><< vorige</a> <a 
href="#">volgende >></a></td>
        </tr>
        <tr>
          <td colspan="3" valign="top" id="footer">(c) 2007 R. Wobben. Deze 
layout is gemaakt door Argosmedia </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<!-- ###DOCUMENT_BODY### -->
</body>
</html>


I now fill in this TS :

*Configuring the Auto-Parser for main template:
plugin.tx_automaketemplate_pi1 {
    # Read the template file:
  content = FILE
  content.file = fileadmin/template/main/template_1.html

    # Here we define which elements in the HTML that
    # should be wrapped in subpart-comments:
  elements {
    BODY.all = 1
    BODY.all.subpartMarker = DOCUMENT_BODY

    HEAD.all = 1
    HEAD.all.subpartMarker = DOCUMENT_HEADER
    HEAD.rmTagSections = title

    TD.all = 1
  }

    # Prefix all relative paths with this value:
  relPathPrefix = fileadmin/template/main/
}


# Main TEMPLATE cObject for the BODY
temp.mainTemplate = TEMPLATE
temp.mainTemplate {
    # Feeding the content from the Auto-parser to the TEMPLATE cObject:
  template =< plugin.tx_automaketemplate_pi1
    # Select only the content between the <body>-tags
  workOnSubpart = DOCUMENT_BODY

    # Substitute the ###menu_1### subpart with some example content:
  subparts.menu_1 = TEXT
  subparts.menu_1.value = HELLO WORLD - MENU

    # Substitute the ###content### subpart with some example content:
  subparts.content = TEXT
  subparts.content.value = HELLO WORLD - CONTENT
}


# Main TEMPLATE cObject for the HEAD
temp.headTemplate = TEMPLATE
temp.headTemplate {
    # Feeding the content from the Auto-parser to the TEMPLATE cObject:
  template =< plugin.tx_automaketemplate_pi1
    # Select only the content between the <head>-tags
  workOnSubpart = DOCUMENT_HEADER
}




# Default PAGE object:
page = PAGE
page.typeNum = 0

# Copying the content from TEMPLATE for <body>-section:
page.10 < temp.mainTemplate

# Copying the content from TEMPLATE for <head>-section:
page.headerData.10  < temp.headTemplate


But now the only thing i see is the background-color.
What do i have done wrong here ?

Regards,

Roelof

_________________________________________________________________
Exclusieve pop concerten en andere gave video's vind je op msn.nl 
http://video.nl.msn.com/v/nl-nl/v.htm



More information about the TYPO3-english mailing list