[TYPO3-german] Teile vom Content soll immer sichtbar sein

bernd wilke x00nsji02 at sneakemail.com
Sun Aug 17 20:39:57 CEST 2008


Roland Schmid schrieb am Sun, 17 Aug 2008 12:26:01 +0200:

[...]
>  
> # 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 ###navigation### subpart with dynamic menu:
>   subparts.navigation < lib.demo_ts
>     # Substitute the ###right### subpart with some example content:
>   subparts.right < styles.content.get
>   # Substitute the ###box### subpart with some example content:
>   styles.content.getRight.slide = -1
> <<-------------hier ist meine Stelle
>   subparts.box < styles.content.getRight
>  
>  
>  }
[...]


wenn man mal die Klammern als Kurzschreibweise auflöst (und die 
Kommenarzeilen weglässt) hast du folgendes definiert:

temp.mainTemplate = TEMPLATE
temp.mainTemplate.template =< plugin.tx_automaketemplate_pi1
temp.mainTemplate.workOnSubpart = DOCUMENT_BODY
temp.mainTemplate.subparts.navigation < lib.demo_ts
temp.mainTemplate.subparts.right < styles.content.get
temp.mainTemplate.styles.content.getRight.slide = -1
temp.mainTemplate.subparts.box < styles.content.getRight
 
dabei macht die vorletzte Zeile nun mal gar keinen Sinn.
entweder du erweiterst 'styles.content.getRight' vor deiner 
temp.mainTemplate-Definition (das wäre dann allerdings global wirksam), 
oder du erweiterst nur die von dir benutzte Verwendung: 
temp.mainTemplate.subparts.box.slide = -1

bernd
-- 
http://www.pi-phi.de/t3v4/cheatsheet.html


More information about the TYPO3-german mailing list