[TYPO3-english] Conditionnal display of a content element

aliasjcdenton at sunrise.ch aliasjcdenton at sunrise.ch
Fri Mar 8 11:54:24 CET 2013


Hello list !

I'd like to display a content (id 587) in a page only if the current
page has no content AND if it has no child pages (subpages).

I tried that but it doesn't work :

lib.content = RECORDS
lib.content {
source.current = 1
tables = tt_content
source.ifEmpty = 587
stdWrap.wrap = |
stdWrap.required = 1
}

lib.content.if.isFalse.numRows {
table = pages
select {
pidInList = this
# Pages non masquées
where = pages.hidden=0
# Pages non masquées dans le menu
andWhere = pages.nav_hide=0
}
}

How can I do ?

Thank you by advance for your help !

aliasjcdenton


More information about the TYPO3-english mailing list