[TYPO3-german] Mittels automaketemplate (autoparser) ein footer einfuegen

Gregor Hermens gregor at a-mazing.de
Wed Dec 23 19:13:31 CET 2009


Hallo Kerem,

Kerem Goldberg schrieb:
> Mein Problem ist der footer.
> 
> Die Homepage habe ich mittels automaketemplate (autoparser) aufgebaut
> und mir das Tutorial "Moderne Templateerstellung Teil 1" zu Rate
> gezogen und etliche weitere Seiten im Netz.
> 
> Das TypoScript geht wie folgt:
> 
> #DOCTYPE auf XHTML 1.0 Strict setzen, für den IE wird die XML-Angabe
> # 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 ###menu_2### subpart with dynamic menu:
>   subparts.menu_2 < temp.menu_2
>   # Substitute the ###content### subpart with some example content:
>   subparts.content < styles.content.get
>   subparts.footer < temp.footer
> }
> 
> ...
> 
> temp.footer =  HMENU
> temp.footer.excludeUidList =
> temp.footer {
>    special = directory
>    special.value = 54
>    1 = TMENU
>    1.wrap = <div id="FOOTER">|</div>
>    1.NO.linkWrap = <div class="menu-separator">&#124;</div><div
> class="menu-item">|</div><div class="menu-separator">&#124;</div>|*|
> <div class="menu-item">|</div><div class="menu-separator">&#124;</
> div>|*|<div class="menu-item">|</div><div class="menu-
> separator">&#124;</div><div class="menu-item"><a href="#"
> onClick="window.print();return false" onfocus="blurLink
> (this);">Drucken</a></div><div class="menu-separator">&#124;</
> div><div class="menu-item"><a href="#BORDER" onfocus="blurLink
> (this);">Top</a></div><div class="menu-separator">&#124;</div>
> }

auf den ersten Blick würde ich sagen, da ist die Reihenfolge falsch.
Du musst temp.footer definieren, bevor du ihn in temp.mainTemplate 
einfügst...

hth
Gruß,
Gregor
-- 
http://www.a-mazing.de/


More information about the TYPO3-german mailing list