Hallo zusammen,
wie würdet ihr am einfachsten eine fusszeile realisieren?
Per HTTP-Template oder geht das auch durch TypoScript?
MfG
Hallo zusammen,
wie würdet ihr am einfachsten eine fusszeile realisieren?
Per HTTP-Template oder geht das auch durch TypoScript?
MfG
mach's über das html template.
wenn du sie später an einer anderen position haben möchtest geht das schneller 😉
Du kannst sie im Html template erstellen und dann im typoscript in inhalt einfügen.
HTML
<TABLE>
<tr><td id="footer">
<P>Sitemap · Impressum · Kontakt</P>
</td></tr>
</TABLE>
TS
temp.footer = TEXT
temp.footer.value = <P class="footer"><a href="index.php?id=55"........</a></P>
dank euch erstmal 🙂
aber der TS code von ffr_dev scheint irgendie nicht zu funktionieren. da zeigt er mir immernoch den inhalt aus dem HTTP-Template an....
🙁
aber ansonsten funktioniert Dein autotemplate parser ?
Du muss unterhalb von ...
temp.footer = TEXT
temp.footer.value = <P class="footer"><a href="index.php?id=55"........</a></P>
... noch diese zeile einfügen
subparts.footer < temp.footer
der autotemplate parser funktioniert soweit....
aber da die doku seite auf www.typo3.org gerade down ist:
wie genau markiere ich einen bereich im template nochmal?
###FOOTER###
blabla
###FOOTER###
so?
🙁
So:
<!-- ###FOOTER### -->
blabla
<!-- ###FOOTER### -->
Oder auch:
<!-- ###FOOTER### begin -->
blabla
<!-- ###FOOTER### end -->
ahja...danke 🙂
leider funktioniert es dennoch nicht 🙁
woran könnte es noch liegen?
🙁
mein ts ist für subparts, und evtl sieht das ganze für marker wieder etwas anders aus?
äähmmm...bitte entschuldige meine unwissenheit 😉
aber wie leg ich denn subparts fest?
🙁
Das sind Ausschnitte aus meinem Template, bei mir funktionierts,
aber das heisst ja noch nichts 🙂
ich hoffe ich hab nichts vergessen.
Konfiguration des AutoTemplateParser:
# 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/
}
temp.footer = TEXT
temp.footer.value = <P class="footer">...</P>
# 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 ###temp.footer### subpart with dynamic links
subparts.footer < temp.footer
# Substitute the ###content### subpart with some example content:
subparts.content < styles.content.get
#subparts.content.wrap = <!--TYPO3SEARCH_begin--> | <!--TYPO3SEARCH_end-->
}
Ausschnitt aus dem HTML-Template
<TABLE>
<tr><td id="footer">
<P>Sitemap · Impressum · Kontakt</P>
</td></tr>
</TABLE>
Typo3 ersetzt nun alles im Bereich der id="footer"
mit dem im TS angegebenen Werten.
gruss ffr