TYPO3: Get content element UID in fluid template of plugin

revision c54bbeb490ae02334135b657ad9c24174ada80ce

raw

README.rst

Needed when linking to itself with an anchor.

In the plugin controller, assign the currentUid template variable to the view:

$this->view->assign('currentUid', $this->configurationManager->getContentObject()->data['uid']);

Then in the view use the currentUid to generate links:

<f:link.action action="form" section="{currentUid}">go!</f:link.action>

Taken from https://stackoverflow.com/a/54663152/282601

History