I want to create a link to an email address like <a href="mailto:[email protected]">somebody</a>.
I tried to use a weblink resource (which gets an id of 20) with mailto:[email protected] as link value and render this in my content with the tag [[~20?~]]. (and different variations of it)
But ModX renders it as <a href="index.php?id=20">somebody</a> This is not what I want.
So how do I do this properly, so that I can reuse this resource in several places in the website?
This link needs to be editable for a 'Content editor' with reduced rights, so I don't think a chunk is the best way to go.
Because to do this you need to create weblink:
and this is works as expected in Wayfinder/PdoMenu:
UPDATE:
[[~20]]- will outputaliasfield. You need to outputcontentfield. To do this usepdoFieldsnippet (part of pdoTools):