[TYPO3] TS to detect if page has any visible pages inside
Ricardo Scachetti Pereira
ricardo at tdwg.org
Tue Jul 11 21:24:06 CEST 2006
Peter,
That was EXACTLY what I was looking for!! Thanks a billion!!!!!
Sorry about being so vague on my original post. I shouldn't really
rely on the fact that you guys read minds ;) Seriously, I will be more
precise next time.
Regards,
Ricardo
Peter Klein wrote:
> 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
>>
>>
>
>
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>
>
More information about the TYPO3-english
mailing list