[Typo3] How to get PID of current page

Vincent Tietz vincent.tietz at vj-media.de
Thu Oct 6 21:51:11 CEST 2005


Hi Jogvan,

Wherever you need the ID (or other fields) of the current page you could
simply use getText
http://typo3.org/documentation/document-library/doc_core_tsref/Datatype_refe
rence/

10 = TEXT
10.data = field:uid
10.wrap = index.php?id=|           (Just an example)

So you shouldn't need to define a constant. I hope this helps.

Bye

Vincent 

> -----Ursprüngliche Nachricht-----
> Von: typo3-english-bounces at lists.netfielders.de [mailto:typo3-english-
> bounces at lists.netfielders.de] Im Auftrag von Jogvan Olsen
> Gesendet: Donnerstag, 6. Oktober 2005 13:38
> An: typo3-english at lists.netfielders.de
> Betreff: [Typo3] How to get PID of current page
> 
> 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
> 
> 
> _______________________________________________
> Typo3-english mailing list
> Typo3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english




More information about the TYPO3-english mailing list