<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed><type>rich</type><version>1.0</version><provider_name>phorkie</provider_name><provider_url>https://p.cweiske.de/</provider_url><title>TYPO3: Get content element UID in fluid template of plugin </title><author_name>Christian Weiske</author_name><cache_age>86400</cache_age><width>900</width><height>900</height><html>&lt;!-- embedding all files of https://p.cweiske.de/842 --&gt;
&lt;link rel="stylesheet" href="https://p.cweiske.de/css/embed.css"/&gt;
&lt;div class="phork" id="842"&gt;
    &lt;div class="phork-file"&gt;
 &lt;div class="phork-content"&gt;
  
&lt;div class="document"&gt;


&lt;p&gt;Needed when linking to itself with an anchor.&lt;/p&gt;
&lt;p&gt;In the plugin controller, assign the &lt;tt class="docutils literal"&gt;currentUid&lt;/tt&gt; template variable to the view:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
$this-&amp;gt;view-&amp;gt;assign('currentUid', $this-&amp;gt;configurationManager-&amp;gt;getContentObject()-&amp;gt;data['uid']);
&lt;/pre&gt;
&lt;p&gt;Then in the view use the &lt;tt class="docutils literal"&gt;currentUid&lt;/tt&gt; to generate links:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
&amp;lt;f:link.action action=&amp;quot;form&amp;quot; section=&amp;quot;{currentUid}&amp;quot;&amp;gt;go!&amp;lt;/f:link.action&amp;gt;
&lt;/pre&gt;
&lt;p&gt;Taken from &lt;a class="reference external" href="https://stackoverflow.com/a/54663152/282601"&gt;https://stackoverflow.com/a/54663152/282601&lt;/a&gt;&lt;/p&gt;
&lt;/div&gt;

 &lt;/div&gt;
 &lt;div class="phork-meta"&gt;
  &lt;a href="https://p.cweiske.de/842/rev-raw/c54bbeb490ae02334135b657ad9c24174ada80ce/README.rst" style="float: right"&gt;view raw source&lt;/a&gt;
  &lt;a href="https://p.cweiske.de/842#README.rst"&gt;README.rst&lt;/a&gt;
 &lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</html></oembed>
