[TYPO3] TS to detect if page has any visible pages inside

Ricardo Scachetti Pereira ricardo at tdwg.org
Tue Jul 11 21:26:48 CEST 2006


    Thanks a lot, Dmitry!!!

    This is really helpful. Besides getting the count of subpages, I was 
also trying to figure out how to use that select function.

    Cheers,

Ricardo


Dmitry Dulepov wrote:
> 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.
>   




More information about the TYPO3-english mailing list