[TYPO3-english] ifEmpty -> don't show wrap ?

JoH asenau info at cybercraft.de
Thu Jun 27 18:32:55 CEST 2013


Am 27.06.2013 14:06, schrieb horace grant:
> hi,
>
> i am doing something like that:
>
> 10 = CONTENT
> 10.stdWrap.wrap = <div id="exhibitions"> | </div>
> 10...
>
> and would like to show the text "no entries!" if there are no entries:
>
> 10.stdWrap.ifEmpty.cObject = TEXT
> 10.stdWrap.ifEmpty.value = no entries!
>
> in this case i don't want output the "exhibitions" wrap tough. how could i
> achieve this?
>
> cheers,
> horace
>

Put the whole block into a COA like that.
And you don't need a TEXT for ifEmpty, since you can give it a value 
directly:

10 = COA
10 {
	stdWrap.ifEmpty = no entries!
	10 = CONTENT
	10 {
		stdwrap.wrap = <div id="exhibitions">|</div>
		stdWrap.required = 1
		...
	}
}

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
Xing: http://contact.cybercraft.de
Twitter: http://twitter.com/bunnyfield
TYPO3 cookbook (2nd edition): http://www.typo3experts.com


More information about the TYPO3-english mailing list