[TYPO3] Wrap everything but header of a content element

Vlatko Surlan vlatkoDOTsurlan at gmail.com
Sat Mar 3 20:15:56 CET 2007


> This is not what you have been talking about and it is not what I showed you
> in my posting.
> 
> You said you are able to wrap the header _and_ the whole element using
> separate headers. So what you have to do is:
> 
> Wrap the header like this
> 
> wrapForTheHeader =<div class="headwrap"> | </div><div class="datawrap">
> 
> and then just close the second div of this header wrap using the following
> wrap for the whole element:
> 
> tt_content.stdWrap.wrap = | </div>
> 
> additional explanation:
> 
> Something like this
> 
> headerWrap = <header>|</header>
> elementWrap = <element>|</element>
> 
> will render
> 
> <element>
>     <header>Header</header>
>         Element
> </element>
> 
> While this
> 
> headerWrap = <header>|</header><element>
> elementWrap = |</element>
> 
> will render
> 
> <header>Header</header><element>
>         Element
> </element>
> 
> Got the point?
> 
> Joey
> 
> PS: headerWrap and elementWrap are just examples that don't exist in
> tt_content. So you should replace them with the names of the desired TS
> parts.
> 

There is a bug with this coding. If I hide the header in the backend 
with this construct I will be left with an unmatched </div> after the 
content elemet. That is what I am fixing just right now. Thank you for 
your example it started me in the right direction.


More information about the TYPO3-english mailing list