[TYPO3] menu - how to count and display included subpages?
rene
gnome2k at web.de
Wed Jan 4 13:23:33 CET 2006
Peter Klein wrote:
> Hi rene. it's close.. Take a look at this stand-alone example..
>
> -- cut --
> lib.test = COA
> lib.test {
>
> # Save the output of numRows in the registervalue: "menuNumber"
> 10 = LOAD_REGISTER
> 10.menuNumber.numRows {
> table = pages
> select.pidInList.data = field:uid
> }
>
> # Retrieve the registervalue and display it.
> 20 = TEXT
> 20.dataWrap = <div>There are {register:menuNumber} subpages to the page:
> {field:title}</div>
>
> }
>
> page.30 < lib.test
> -- cut --
>
hello peter.
thank you for the example. but it doesn't solve the main problem i have
- how to get the data into the TMENU and inside the link. i tried to
copy the data from lib.test into NO with:
NO < lib.test
or
NO.dataWrap < lib.test
but didn't get it to work. in the documentation there is no sentence how
the link is build, so i could jump between. only how to wrap around
something but that's not my problem.
could you help me once again?
thanks in advance.
More information about the TYPO3-english
mailing list