[TYPO3-english] Get current page ID in menu.

Rudy Gnodde (WIND Internet) rgn at windinternet.nl
Thu Oct 29 10:20:33 CET 2009


Hello Radoslav,

Radoslav Kolarov wrote:
> Hi, I need to get current page in menu to make it dynamic. Here is the 
> code:
> 
> ...
> special = directory
> special.value = [current_page_id]
> entryLevel = 0
> .....
> 
> So I'll show the subpages of current page in this menu.
> Please tell me how to get this pageid.
> Thanks

special.value has stdWrap, so you can set special.value.data = TSFE:id. 
I haven't tried it, but something like that should work.

Regards,

Rudy


More information about the TYPO3-english mailing list