I am trying to implement a simple function but am unsure on how to best do it. Basically I want to display a link on certain pages that, when clicked on adds the current user to the page frontmatter.
Is it possible to do this in twig? If not, do I need a custom plugin? I would appreciate if someone could give me some pointers on how to best solve this.
Thanks in advance,