[TYPO3] ifNotEmpty

Jan Bednarik info at bednarik.org
Tue Apr 1 18:34:14 CEST 2008


Hey,

don't tell me, it's not possible :)

I want to wrap content only if there's something in it. But this is not 
working:

page.10.subparts.CLEFT < styles.content.getLeft
page.10.subparts.CLEFT {
stdWrap.required = 1
stdWrap.wrap = <div class="padding">|</div>
stdWrap.ifEmpty.wrap = |
}

moreover, I'd like to substitue left content with border, if left is empty:

page.10.subparts.CLEFT < styles.content.getLeft
page.10.subparts.CLEFT {
stdWrap.required = 1
stdWrap.wrap = <div class="padding">|</div>
stdWrap.ifEmpty.override.cObject < styles.content.getBorder
stdWrap.ifEmpty.override.cObject.slide = -1
stdWrap.ifEmpty.override.cObject.wrap = |
}

doesn't work either.

Any ideas? Thanks

-- 
Jan Bednarik
www.bednarik.org - web about Typo3 in czech


More information about the TYPO3-english mailing list