[TYPO3-dev] Getting id of the page

Martin Kutschker Martin.Kutschker at n0spam-blackbox.net
Fri Aug 25 10:41:55 CEST 2006


Tapio Markula schrieb:
> Hi
> 
> I would need for function 'docStyle()' for class.ux_template.php
> 
> the id of the page, which has been opened.
> I tried to get it from $_GET parameter
> 
> 
>         if(isset($_GET['id']))
>             $id = $_GET['id'];
>         else    {

if (preg_match('/(?:^|&)id=([0-9]+)/',$_GET['returnUrl'],$match)) {
   $id = $match[1];
}

>             }
>         #print $id;
>         $PageTSConfig=t3lib_BEfunc::getPagesTSconfig($id);


> Would there be some build-in class method to get the id of the page?

Not that I am aware of.

Masi




More information about the TYPO3-dev mailing list