[TYPO3-dev] Getting id of the page
Tapio Markula
tapio.markula at dnainternet.net
Fri Aug 25 09:28:39 CEST 2006
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 {
$id = strrchr($_GET['returnUrl'],'id=');
$id = substr($id,3);
$idPos = strpos($id,'&table');
$id = substr($id,0, $idPos);
}
#print $id;
$PageTSConfig=t3lib_BEfunc::getPagesTSconfig($id);
the problem is that after the parameter id in the value of
$_GET['returnUrl'] are different parametres, when the code above doesn't
work for all record types.
Would there be some build-in class method to get the id of the page?
More information about the TYPO3-dev
mailing list