[TYPO3] Conditionally wrap CE header

JoH asenau info at cybercraft.de
Tue Jun 19 03:36:02 CEST 2007


> I am trying to conditionally wrap the content element headers based on
> whether or not the header is empty via lib.stdheader. Needless to
> say, I am stumped.
>
> If header is empty, wrap it with <div class="empty_header">|<div>
>
> If header is not empty, wrap it with <div
> class="not_empty_header">|</div>
>
> This seems to be similar to another earlier thread
> (http://lists.netfielders.de/pipermail/typo3-english/2007-March/036734.h
> tml), but I am evidently missing how to implement the "ifEmpty" piece
> that Joey suggested.

Try this one:

lib.stdheader.stdWrap.ifEmpty = <div class="empty_header"><div>

Since there is nothing to wrap, you don't need the separating |

HTH

Joey

-- 
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your gob sometimes!)
Dieter Nuhr, German comedian
openBC/Xing: http://www.cybercraft.de
T3 cookbook: http://www.typo3experts.com




More information about the TYPO3-english mailing list