[Typo3] How to get PID of current page

tobias erlacher tobi at 54tec.com
Fri Oct 7 11:30:55 CEST 2005


Hi,

here is a solution for getting a link to the actual page
http://www.typo3wizard.com/en/snippets/cool-stuff-typoscript/show-the-url-of-the-current-page.html

have fun

Tobias Erlacher
www.typo3wizard.com

Am Thu, 06 Oct 2005 21:51:11 +0200 schrieb Vincent Tietz  
<vincent.tietz at vj-media.de>:

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



-- 
Erstellt mit Operas revolutionärem E-Mail-Modul: http://www.opera.com/m2/



More information about the TYPO3-english mailing list