TYPO3 extbase: Page UID and content element UID

raw

README.rst

Extbase controller

Access the current page's ID and content element ID in an exbase controller action:

$contentObj = $this->configurationManager->getContentObject();
$pageUid = $contentObj->data['pid'];
$contentElementUid = $contentObj->data['uid'];

Fluid

With vhs:

{v:page.info(field: 'uid')}
Christian Weiske Christian Weiske
owner

History