[Typo3] How to get PID of current page
Simon Tuck
e-mailNO at SPAMeyejet.com
Thu Oct 6 16:35:35 CEST 2005
Jogvan Olsen wrote:
> How can I get the PID of current page and assign it to a variable?
>
> What I like to do is something like this:
>
> In CONSTANS:
> Pid_of_current_page = TSFE:id / I know 'TSFE:id' is wrong - the problem is
> that I don't know what to use instead.
>
>
> And then use 'Pid_of_current_page' in my SETUP like this:
> Xxx = {$Pid_of_current_page}
>
> My problem is that I can't find out how to assign 'Pid_of_current_page' to
> current PID.
>
> Hope you can help.
>
> Thanks in advance
> Jogvan Olsen
>
>
I don't think you can do that in the constants. Also, I'm not sure i understand where you are going with this: you want the
parent id of the current page to equal the parent id of the current page? perhaps if you could explain what you are trying
to do...
cheers,
simon
More information about the TYPO3-english
mailing list