[Typo3-UG Dutch] De pagina titel weergeven?
Patrick Muller
patrick at fenomedia.com
Tue May 25 02:44:08 CEST 2004
Ik heb een schijnbaar simpel probleem waar ik niet uit kom bij een site
waarmee de template door de Autoparser gaat. Op zich werkt alles alleen ik
heb geen idee wat ik in mijn HTML template en de typo3 setup moet aanpassen
zodat de pagina-titel getoond wordt aan de bovenkant van de pagina...
In de tutorials worden genoeg voorbeelden gegeven hoe je de titel via de
setup genereerd maar nergens hoe je de titel in combinatie met de setup,
autoparser en een HTML file tevoorschijn tovert. Ik vermoedt dat het
beschamend simpel is maar ik zie het even niet.
Alvast mijn dank!
Grt, Patrick
------------------
DIT IS MIJN SETUP:
------------------
# 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/
}
# Menu 1 cObject
temp.menu_1 = HMENU
# First level menu-object, textual
temp.menu_1.1 = TMENU
temp.menu_1.1 {
# Normal state properties
NO.allWrap = <div class="menu1-level1-no"> | </div>
# Enable active state and set properties:
ACT = 1
ACT.allWrap = <div class="menu1-level1-act"> | </div>
}
# Second level menu-object, textual
temp.menu_1.2 = TMENU
temp.menu_1.2 {
# Normal state properties
NO.allWrap = <div class="menu1-level2-no"> | </div>
# Enable active state and set properties:
ACT = 1
ACT.allWrap = <div class="menu1-level2-act"> | </div>
}
# 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 dynamic menu:
subparts.menu_1 < temp.menu_1
# Substitute the ###content### subpart with some example content:
subparts.content< styles.content.get
subparts.contentRight< styles.content.getRight
subparts.title < temp.title
}
# 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
----------------------------------------------------------------------
DIT IS MIJN HTML TEMPLATE (bij ###title### moet de paginatitel komen):
----------------------------------------------------------------------
<?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>
<!-- Header image row: -->
<TABLE WIDTH="760" BORDER="0" ALIGN="center" CELLPADDING="0"
CELLSPACING="0">
<TR>
<TH COLSPAN="3" SCOPE="col">
<TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0">
<TR>
<TH WIDTH="85" SCOPE="col">
<IMG
SRC="http://www.onestep.nl/fileadmin/template/main/images/logo_home.jpg"
WIDTH="118" HEIGHT="85"></TH>
<TH
BACKGROUND="http://www.onestep.nl/fileadmin/template/main/images/fondo_heade
r.jpg" SCOPE="col</TH>###title###
<TH
BACKGROUND="http://www.onestep.nl/fileadmin/template/main/images/fondo_heade
r.jpg" SCOPE="col">
<DIV ALIGN="right">
</DIV>
</TH>
<TH WIDTH="12" ALIGN="right" SCOPE="col">
<IMG BORDER="0"
SRC="http://www.onestep.nl/fileadmin/template/main/images/fondo_header_hoek.
jpg" WIDTH="12" HEIGHT="85"></TH>
</TR>
</TABLE>
</TH>
</TR>
<TR>
<TD WIDTH="118" HEIGHT="600" VALIGN="top"
BACKGROUND="http://www.onestep.nl/fileadmin/template/main/images/imag_home2.
jpg">
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0"
STYLE="border-collapse: collapse" WIDTH="100%" ID="AutoNumber1">
<TR>
<TD WIDTH="5"> </TD>
<TD WIDTH="90"><TABLE BGCOLOR="#FFFFFF" WIDTH="100%" BORDER="0"
ALIGN="center" CELLSPACING="0" CELLPADDING="0">
<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: -->
</TABLE></TD>
<TD WIDTH="19"> </TD>
</TR>
</TABLE>
</TD>
<TD WIDTH="630" ALIGN="left" VALIGN="top">
<TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0">
<TR>
<TD id="content" WIDTH="310" ALIGN="left" VALIGN="top"><BR><BR>
<H1>STATISCH cel Buy PaperShredder(tm) Gizmo with 30-days money-back
guarantee</H1>
<P><BR><BR>
<IMG
SRC="http://www.onestep.nl/fileadmin/template/main/images/paperwork.jpg"
BORDER="0" ALT ALIGN="right" WIDTH="192" HEIGHT="156" />
</P>
<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 </TD>
<TD WIDTH="20" SCOPE="col"> </TD>
<TD id="contentRight" WIDTH="340" ALIGN="left" VALIGN="top"
SCOPE="col">
<H1>STATISCH cel 2 PaperShredder(tm) Gizmo with 30-days money-back
guarantee!</H1>
<P>
<IMG
SRC="http://www.onestep.nl/fileadmin/template/main/images/paperwork.jpg"
BORDER="0" ALT ALIGN="right" WIDTH="192" HEIGHT="156" />
</P>
<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 </TD>
</TR>
</TABLE>
<TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0">
<TR>
<TD> </TD>
</TR>
</TABLE>
</TD>
<TD WIDTH="15"
BACKGROUND="http://www.onestep.nl/fileadmin/template/main/images/lijn.jpg">&
nbsp;</TD>
</TR>
<TR>
<TD>
<IMG
SRC="http://www.onestep.nl/fileadmin/template/main/images/footer_home.jpg"
WIDTH="118" HEIGHT="29"></TD>
<TD COLSPAN="2">
<IMG
SRC="http://www.onestep.nl/fileadmin/template/main/images/footer.jpg"
WIDTH="642" HEIGHT="29"></TD>
</TR>
</TABLE>
</BODY>
</HTML>
More information about the TYPO3-UG-dutch
mailing list