[TYPO3-dev] Getting id of the page

Bernd Wilke xoonsji02 at sneakemail.com
Fri Aug 25 19:45:47 CEST 2006


On Fri, 25 Aug 2006 10:28:39 +0300, Tapio Markula wrote
with subject "[TYPO3-dev] Getting id of the page":

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


what are all you talking about?

FE or BE?

(consider: editing a page in FE-mode still is BE!)

all answers in this thread seem to talk at cross-purposes.

Bernd
-- 
----------------
Bernd Wilke     
Annweilerstr.20 
40229 Düsseldorf
0211/229 2800




More information about the TYPO3-dev mailing list