[TYPO3] Conditionally wrap CE header

Wester, Josh joshwester at creighton.edu
Tue Jun 19 16:49:23 CEST 2007


> 
> Have you tried ib.stdheader.stdWrap.dataWrap.ifEmpty = ... ?


I tried it just now, but still the same results. Thanks for the idea, it
was worth a try!


> 
> 
> 2007/6/19, Wester, Josh <joshwester at creighton.edu>:
> >
> > > > 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>
> >
> >
> > Thanks for the help, Joey. Unfortunately, I can't seem to get it to
> > work. Here is my TS:
> >
> > lib.stdheader.stdWrap.dataWrap = <div
class="not_empty_header">|</div>
> > lib.stdheader.stdWrap.ifEmpty = <div class="empty_header"></div>
> >
> >
> > This wraps the content elements with headers, but doesn't insert the
> > ifEmpty string for the content elements without headers unwrapped.
> >
> > Does that look like it should work, or am I missing something?
> >
> > Thanks again,
> >
> > Josh
> >
> >
> > >
> > > Since there is nothing to wrap, you don't need the separating |
> > >
> > > HTH
> > >
> > > Joey
> > _______________________________________________
> > TYPO3-english mailing list
> > TYPO3-english at lists.netfielders.de
> > http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
> >
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english


More information about the TYPO3-english mailing list