[TYPO3] TS to detect if page has any visible pages inside
Peter Klein
peter at umloud.dk
Tue Jul 11 21:14:23 CEST 2006
Hi Ricardo. I assume that you mean if a page has subpages or not?
Then try this:
--- cut ---
lib.subpages = COA
lib.subpages {
10 = TEXT
10.value = This page has subpages<br>
10.if.isTrue.numRows {
table = pages
where = pid=this
}
20 = TEXT
20.value = This page don't have any subpages<br>
20.if.negate = 1
20.if.isTrue.numRows {
table = pages
where = pid=this
}
}
page.101 < lib.subpages
--- cut ---
---
Peter Klein / umloud Untd
"Ricardo Scachetti Pereira" <ricardo at tdwg.org> wrote in message
news:mailman.4151.1152643632.23537.typo3-english at lists.netfielders.de...
> Hi folks,
>
> I'm tying to write some TS that detects whether the current page has
> visible pages or not (i.e., whether it is a leaf page in the page tree),
> but without success.
>
> I have collected some bits and pieces from TSRef, but I can't seem to
> be able to put it all together.
>
> Any help is greatly appreciated.
>
> Best regards,
>
> Ricardo
>
More information about the TYPO3-english
mailing list