(no commit message) master
authorChristian Weiske <cweiske@cweiske.de>
Fri, 16 Jun 2023 15:00:17 +0000 (17:00 +0200)
committerChristian Weiske <cweiske@cweiske.de>
Fri, 16 Jun 2023 15:00:17 +0000 (17:00 +0200)
README.rst [new file with mode: 0644]

diff --git a/README.rst b/README.rst
new file mode 100644 (file)
index 0000000..4414a54
--- /dev/null
@@ -0,0 +1,11 @@
+Needed when linking to itself with an anchor.\r
+\r
+In the plugin controller, assign the ``currentUid`` template variable to the view::\r
+\r
+  $this->view->assign('currentUid', $this->configurationManager->getContentObject()->data['uid']);\r
+\r
+Then in the view use the ``currentUid`` to generate links::\r
+\r
+  <f:link.action action="form" section="{currentUid}">go!</f:link.action>\r
+\r
+Taken from https://stackoverflow.com/a/54663152/282601
\ No newline at end of file