Zum Inhalt springen

Header erscheint nicht im Template

Erstellt am 23. April 2004 · 3 Antworten · letzte Antwort am 25. April 2004

Tags: Frage

Jesaja ·

Ich hab jetzt schon länger ein Intranet aufgebaut auf Basis von Typo3. Jetzt hab ich jedoch festgestellt, dass auf den Seiten der Titel gar nicht erscheint. Einen Grund dafür hab ich nicht gefunden.

Kennt einer den Grund?

Sourcecodes:

Template: ext: Auto-parser plugin

# 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

Template HTML:

<?xml version="1.0" encoding="iso-8859-1"?>
<?xml-stylesheet href="#internalStyle" type="text/css"?>
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
	<title>Base template, header, menu, content and footer.</title>
	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
	<style type="text/css" id="internalStyle">
		/*<![CDATA[*/
		BODY {	margin: 0 0 0 0; background-color: white; }
		/*]]>*/
	</style>
	<link href="res/stylesheet.css" rel="stylesheet" type="text/css" />
</head>
<body>
	<table border="0" cellpadding="0" cellspacing="0">

		<!-- Header image row: -->
	<tr>
		<td colspan="2" id="header_1"><img src="images/headerimage.jpg" width="600" height="100" alt="" border="0" /></td>
	</tr>
	<tr>

		<!-- Menu table cell: -->
		<td id="menu_1">
			<div class="menu1-level1-no"><a href="#">Menu item 1</a></div>
			<div class="menu1-level1-no"><a href="#">Menu item 2</a></div>
			<div class="menu1-level1-act"><a href="#">Menu item 3 (act)</a></div>
			<div class="menu1-level2-no"><a href="#">Level 2 item</a></div>
			<div class="menu1-level2-no"><a href="#">Level 2 item</a></div>
			<div class="menu1-level2-act"><a href="#">Level 2 item (act)</a></div>
			<div class="menu1-level1-no"><a href="#">Menu item 2</a></div>
		</td>

		<!-- Page Content Area table cell: -->
		<td id="content">
			<h1>Buy PaperShredder(tm) Gizmo with 30-days money-back guarantee!</h1>
			<img src="images/paperwork.jpg" width="192" height="156" border="0" alt="" align="right"/>
			<p class="bodytext">Adam Seth Enos Cainan Malelehel Iared Enoch Matusale Lamech Noe Sem Ham et Iafeth filii Iafeth Gomer Magog Madai et Iavan Thubal Mosoch Thirasporro filii Gomer Aschenez et Rifath et Thogorma filii autem Iavan Elisa et Tharsis Cetthim et Dodanim.</p>
			<p class="bodytext">Filii Ham Chus et Mesraim Phut et Chanaan filii autem Chus Saba et Evila Sabatha et Rechma et Sabathaca porro filii Rechma Saba et Dadan Chus autem genuit Nemrod iste coepit esse potens in terra Mesraim vero genuit Ludim et Anamim et Laabim et Nepthuim Phethrosim quoque et Chasluim de quibus egressi sunt Philisthim et Capthurim Chanaan vero genuit Sidonem primogenitum et Heth Iebuseum quoque et Amorreum et Gergeseum Evheumque et Aruceum et Asineum Aradium quoque et Samareum et Ematheum filii Sem Aelam et Assur et Arfaxad et Lud et Aram et Us et Hul et Gothor et Mosoch Arfaxad autem genuit Sala qui et ipse genuit Heber porro Heber nati sunt duo filii nomen uni Phaleg quia in diebus eius divisa est terra et nomen fratris eius Iectan Iectan autem genuit Helmodad et Saleph et Asermoth et Iare Aduram quoque et Uzal et Decla Ebal etiam et Abimahel et Saba necnon et Ophir et Evila et Iobab omnes isti filii Iectan Sem Arfaxad Sale Heber Phaleg Raau Serug Nahor Thare Abram iste est Abraham filii autem Abraham Isaac et Ismahel et hae generationes eorum primogenitus Ismahelis Nabaioth et Cedar et Adbeel et Mabsam </p>
			
			<br />
		</td>
	</tr>

		<!-- Footer row: -->
	<tr>
		<td colspan="2" id="footer">
			<p>Main Dish &amp; Son inc. * 12345 Tricky Road, suite 9998 * Boston</p>
		</td>
	</tr>
	</table>
</body>
</html>
TW ·
Jesaja schrieb

Ich hab jetzt schon länger ein Intranet aufgebaut auf Basis von Typo3. Jetzt hab ich jedoch festgestellt, dass auf den Seiten der Titel gar nicht erscheint. Einen Grund dafür hab ich nicht gefunden.

Kennt einer den Grund?

Sourcecodes:

Template: ext: Auto-parser plugin

# 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

Template HTML:

<?xml version="1.0" encoding="iso-8859-1"?>
<?xml-stylesheet href="#internalStyle" type="text/css"?>
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
	<title>Base template, header, menu, content and footer.</title>
	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
	<style type="text/css" id="internalStyle">
		/*<![CDATA[*/
		BODY {	margin: 0 0 0 0; background-color: white; }
		/*]]>*/
	</style>
	<link href="res/stylesheet.css" rel="stylesheet" type="text/css" />
</head>
<body>
	<table border="0" cellpadding="0" cellspacing="0">

		<!-- Header image row: -->
	<tr>
		<td colspan="2" id="header_1"><img src="images/headerimage.jpg" width="600" height="100" alt="" border="0" /></td>
	</tr>
	<tr>

		<!-- Menu table cell: -->
		<td id="menu_1">
			<div class="menu1-level1-no"><a href="#">Menu item 1</a></div>
			<div class="menu1-level1-no"><a href="#">Menu item 2</a></div>
			<div class="menu1-level1-act"><a href="#">Menu item 3 (act)</a></div>
			<div class="menu1-level2-no"><a href="#">Level 2 item</a></div>
			<div class="menu1-level2-no"><a href="#">Level 2 item</a></div>
			<div class="menu1-level2-act"><a href="#">Level 2 item (act)</a></div>
			<div class="menu1-level1-no"><a href="#">Menu item 2</a></div>
		</td>

		<!-- Page Content Area table cell: -->
		<td id="content">
			<h1>Buy PaperShredder(tm) Gizmo with 30-days money-back guarantee!</h1>
			<img src="images/paperwork.jpg" width="192" height="156" border="0" alt="" align="right"/>
			<p class="bodytext">Adam Seth Enos Cainan Malelehel Iared Enoch Matusale Lamech Noe Sem Ham et Iafeth filii Iafeth Gomer Magog Madai et Iavan Thubal Mosoch Thirasporro filii Gomer Aschenez et Rifath et Thogorma filii autem Iavan Elisa et Tharsis Cetthim et Dodanim.</p>
			<p class="bodytext">Filii Ham Chus et Mesraim Phut et Chanaan filii autem Chus Saba et Evila Sabatha et Rechma et Sabathaca porro filii Rechma Saba et Dadan Chus autem genuit Nemrod iste coepit esse potens in terra Mesraim vero genuit Ludim et Anamim et Laabim et Nepthuim Phethrosim quoque et Chasluim de quibus egressi sunt Philisthim et Capthurim Chanaan vero genuit Sidonem primogenitum et Heth Iebuseum quoque et Amorreum et Gergeseum Evheumque et Aruceum et Asineum Aradium quoque et Samareum et Ematheum filii Sem Aelam et Assur et Arfaxad et Lud et Aram et Us et Hul et Gothor et Mosoch Arfaxad autem genuit Sala qui et ipse genuit Heber porro Heber nati sunt duo filii nomen uni Phaleg quia in diebus eius divisa est terra et nomen fratris eius Iectan Iectan autem genuit Helmodad et Saleph et Asermoth et Iare Aduram quoque et Uzal et Decla Ebal etiam et Abimahel et Saba necnon et Ophir et Evila et Iobab omnes isti filii Iectan Sem Arfaxad Sale Heber Phaleg Raau Serug Nahor Thare Abram iste est Abraham filii autem Abraham Isaac et Ismahel et hae generationes eorum primogenitus Ismahelis Nabaioth et Cedar et Adbeel et Mabsam </p>
			
			<br />
		</td>
	</tr>

		<!-- Footer row: -->
	<tr>
		<td colspan="2" id="footer">
			<p>Main Dish &amp; Son inc. * 12345 Tricky Road, suite 9998 * Boston</p>
		</td>
	</tr>
	</table>
</body>
</html>

hi
vielleicht hast du auf den seiten keine titel angegeben?????

cu
thorsten