[Typo3] How to get PID of current page

Jochen Rieger j.rieger at connecta.ag
Thu Oct 6 13:52:02 CEST 2005


Hi Jogvan,

as far as I know you could write something like this in your SETUP:

xxx.data = page : uid

Or also pid if you really need the parent ID.

Jochen

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
> 
> 



More information about the TYPO3-english mailing list