[Typo3] Using stdwrap if like HMENU's IFSUB
JoH
info at cybercraft.de
Wed Apr 27 00:01:24 CEST 2005
> 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
--
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your knob sometimes!)
Dieter Nuhr, German comedian
openBC: http://www.openbc.com/go/invuid/Jo_Hasenau
More information about the TYPO3-english
mailing list