[Typo3] Wrapping whole content

Rob De Vries spam_this at pandora.be
Thu May 19 14:22:55 CEST 2005


Robert Markula wrote:
> Hi,
> I have one question which I thought was easy to solve, but I didn't find 
> an answer yet.
> How can I wrap the whole content area (styles.content.get)?
> I know I could do it with
> subparts.CONTENT < styles.content.get
> subparts.CONTENT.stdWrap.wrap = <...> | </...>
> 
> But I need conditions on the wrap. Point is, for each level in the tree 
> there should be a different wrap around all dynamic content that is 
> output via styles.content.get.
> 
> I thought about something like this:
> # Wrapping the whole content
> [treeLevel = 0]
>   ...stdWrap.wrap = <div id="level_0"> | </div>
> [end]
> 
> Regards
> Ro

try this :
[treeLevel = 0]
temp.contentArea.subparts.CONTENT.stdWrap.wrap = <...> | </...>
[end]

you have to use conditions outside the { }

this will fail:

temp.contentArea {
[treeLevel = 0]
subparts.CONTENT.stdWrap.wrap = <...> | </...>
[end]
}

rob



More information about the TYPO3-english mailing list