[Typo3] passing page uid to a php script

media.res | alex widschwendter a.widschwendter at mediares.at
Tue Apr 12 11:09:50 CEST 2005


hi andy,

> Does anyone know how to pass the page uid,title, and alias to one of my own
> php scripts.  It seems like a simple thing but i cant seem to get it to
> work.  This is the typoscript i've tried:
> 
> lib.simpleLog = USER
> lib.simpleLog.userFunc = user_log->log
> lib.simpleLog {
> 
>   uid = field:uid
> 
> }

you can access the current page id with
$GLOBALS['TSFE']->id
in your script.

hth alex



More information about the TYPO3-english mailing list