[TYPO3] Wrap everything but header of a content element

Vlatko Surlan vlatkoDOTsurlan at gmail.com
Sun Mar 4 22:24:37 CET 2007


> It's not a bug, it's a feature ;-)
> You never asked about the handling of empty headers so I just gave you the
> basic solution.
> 
> It will work when you will use "ifEmpty" on the header, so that it will wrap
> like this
> <header>Header</header><element>
> if a header is available and like this
> <element>
> if the header is empty, so the closing </element> will always get a partner.
> 
> Advantage: You don't have to take care of separate wraps for each and every
> type of content element/plugin, since all available elements will be wrapped
> this way. (With just one exception: textpic is using some layout variants
> pushing the header into the content itself, so you will have to find a
> special solution for them)
> 
> HTH
> 
> Joey
> 

Hehe :). Smart one. I did manage to get that 'feature' by myself but 
couldn't figure out how to fix it for hidden headers. ifEmpty is great 
solution.


More information about the TYPO3-english mailing list