{"type":"rich","version":"1.0","provider_name":"phorkie","provider_url":"https:\/\/p.cweiske.de\/","title":"TYPO3: Get content element UID in fluid template of plugin ","author_name":"Christian Weiske","cache_age":86400,"width":900,"height":900,"html":"<!-- embedding all files of https:\/\/p.cweiske.de\/842 -->\n<link rel=\"stylesheet\" href=\"https:\/\/p.cweiske.de\/css\/embed.css\"\/>\n<div class=\"phork\" id=\"842\">\n    <div class=\"phork-file\">\n <div class=\"phork-content\">\n  \n<div class=\"document\">\n\n\n<p>Needed when linking to itself with an anchor.<\/p>\n<p>In the plugin controller, assign the <tt class=\"docutils literal\">currentUid<\/tt> template variable to the view:<\/p>\n<pre class=\"literal-block\">\n$this-&gt;view-&gt;assign('currentUid', $this-&gt;configurationManager-&gt;getContentObject()-&gt;data['uid']);\n<\/pre>\n<p>Then in the view use the <tt class=\"docutils literal\">currentUid<\/tt> to generate links:<\/p>\n<pre class=\"literal-block\">\n&lt;f:link.action action=&quot;form&quot; section=&quot;{currentUid}&quot;&gt;go!&lt;\/f:link.action&gt;\n<\/pre>\n<p>Taken from <a class=\"reference external\" href=\"https:\/\/stackoverflow.com\/a\/54663152\/282601\">https:\/\/stackoverflow.com\/a\/54663152\/282601<\/a><\/p>\n<\/div>\n\n <\/div>\n <div class=\"phork-meta\">\n  <a href=\"https:\/\/p.cweiske.de\/842\/rev-raw\/c54bbeb490ae02334135b657ad9c24174ada80ce\/README.rst\" style=\"float: right\">view raw source<\/a>\n  <a href=\"https:\/\/p.cweiske.de\/842#README.rst\">README.rst<\/a>\n <\/div>\n<\/div>\n<\/div>\n"}
