[TYPO3] menu - how to count and display included subpages?

Peter Klein peter at umloud.dk
Wed Jan 4 15:53:08 CET 2006


Hi rene. If you change my example a bit it will work in TMENU too..

Change "lib.test" to "stdWrap.cObject" and place the entire COA object 
inside the "NO" part of your TMENU.. And drop the "page.30 < lib.test"

-- 
Peter Klein/Umloud Untd

"rene" <gnome2k at web.de> skrev i en meddelelse 
news:mailman.1.1136377850.4775.typo3-english at lists.netfielders.de...
> 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