[TYPO3] TS to detect if page has any visible pages inside
Dmitry Dulepov
typo3 at accio.lv
Tue Jul 11 21:13:41 CEST 2006
Hi!
Ricardo Scachetti Pereira wrote:
> 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.
Since you did not say what you need exactly, here is a piece of TS:
page.10 = CONTENT
page.10 {
select {
selectFields = count(uid) AS counter
pidInList = this
}
renderObj = TEXT
renderObj.field = counter
renderObj.wrap = Number of immediate children: |
}
Dmitry.
--
"It is our choices, that show what we truly are,
far more than our abilities." (A.P.W.B.D.)
More information about the TYPO3-english
mailing list