[Typo3] Template

Predrag angelovski at win.rwth-aachen.de
Tue Mar 8 18:20:02 CET 2005


I know this might sound simple but i am very tired.

I canot findout whi this template config:

# Configuring the Auto-Parser:
plugin.tx_automaketemplate_pi1 {
   # Read the template file:
  content = FILE
  content.file = fileadmin/presentation/museum.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/presentation/
}
# Default PAGE object:
page = PAGE
page.typeNum = 0
page.config.disableAllHeaderCode=1
page.10 =< plugin.tx_automaketemplate_pi1
plugin.tx_automaketemplate_pi1.content.file = 
fileadmin/presentation/museum.html

doesnt work with this template:

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de">
  <head><!--###DOCUMENT_HEADER### begin-->
    		
  <!--###DOCUMENT_HEADER### end--></head>

<body><!--###DOCUMENT_BODY### begin-->
		<div class="layout">
			<div class="box_top"></div>
      <div class="box_random"><!--###random### begin-->+++ Pfannkuchen 
satt +++ Freitag ab 17 Uhr +++ 6,50 Euro pro Person+++ <!--###random### 
end--></div>
      <div class="box_right"><img src="logo1.png" />
      <div class="news_box"><h1>Der Weg zu uns</h1><img src="map.png" />
</div>
      <div class="news_box"><h1>Kontakt</h1> 
</div>
<div class="news_box"><h1>Tipps und Neuigkeiten</h1>Aktuelle Gutscheine 
und Angebote </div>
      </div>
      <div class="box_left">
				<div class="submenue">
					<!--###menu### begin-->
          <div class="menueentry"><a href=""></a></div>
          <div class="menueentry_2"><a href=""></a></div><!--###menu### 
end--><img src="bottom_main.jpg" /></div>
			</div>
      
  		<div class="box_main">
				<h1 class="pagetitle"><!--###marker_2### begin-->
MUSEUMSKRUG<!--###marker_2### end--></h1>
        <!--###content### begin-->

	<!--###content### end--></div>

    <div class="spacer"></div>
    <div class="line"></div>
    <div class="box_copyright"></div>

		</div>
!--###DOCUMENT_BODY### end--></body>

</html>
I mean i havent set up the menu or anything. I just want it to display 
the content of this template. The template is under 
fileadmin/presentation/museum.html. And also i removed the stylesheet to 
make it simpler to understand. and i have installed the plugin required. 
Whats killing me is that this is my third site with typo3 and i never had 
a problem trivial as this.

Any sugestions are welcome



More information about the TYPO3-english mailing list