[TYPO3-english] ifEmpty -> don't show wrap ?
horace grant
horace3d at gmail.com
Fri Jun 28 00:22:27 CEST 2013
On Thu, Jun 27, 2013 at 6:32 PM, JoH asenau <info at cybercraft.de> wrote:
> 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
> ...
> }
> }
>
thanks! so simple! :)
cheers,
horace
>
> 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
>
> ______________________________**_________________
> TYPO3-english mailing list
> TYPO3-english at lists.typo3.org
> http://lists.typo3.org/cgi-**bin/mailman/listinfo/typo3-**english<http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english>
>
More information about the TYPO3-english
mailing list