[Typo3] Using stdwrap if like HMENU's IFSUB
Fabian Schulz
schulz at fabianschulz.de
Wed Apr 27 00:16:27 CEST 2005
Thanks a lot! That works like a charm.
JoH wrote:
>>I am trying to display certain parts of a template only if there is at
>>least one level below the current page.
>>
>>
>>Of course, there is no areThereAnyChildrenOfThisPage :-) but maybe a
>>similar thing.
>
>
> With numRows you can determine if there is something to show or not.
>
> 30 = TEXT
> 30 {
> wrap = <div class="divMidLeftL1Repeater"><ul><li>|</li></ul></div>
> data = leveltitle:1
> if {
> isTrue.numRows {
> table = pages
> select {
> # select properties here if necessary
> }
> }
> }
> }
>
> Have a look at TSref
> http://typo3.org/documentation/document-library/doc_core_tsref/numRows/
>
> Joey
>
More information about the TYPO3-english
mailing list