[TYPO3-dev] Getting id of the page
Tapio Markula
tapio.markula at dnainternet.net
Fri Aug 25 12:42:37 CEST 2006
Martin Ficzel kirjoitti:
> if you are in the FE t3lib_div::debug($GLOBALS['TSFE']) should show you
> the structure of the TSFE Object.
but frontend editing is BE inside FE
>
> t3lib_div::debug($GLOBALS['TSFE']->id ) is the current page id
simple doesn't exist
for editing 'Page properties' I can get the desired info
using
key($_GET['edit']['pages']);
$_GET['edit'] can return also as the first key 'tt_content'
then I need uid
$key=key($_GET['edit']);
$uid=key($_GET['edit'][$key]);
and finally I shoud get pid on the base of the uid
What would be the best class-method for that?
More information about the TYPO3-dev
mailing list