[TYPO3-english] Conditionnal display of a content element

aliasjcdenton at sunrise.ch aliasjcdenton at sunrise.ch
Tue Mar 12 16:01:59 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