How to create a mailto-link from scaffolding field
How should I create a link to an e-mail address which is stored in a scaffolding field?
Here's my current solution:
But I believe there's a better way. render=wiki doesn't help. Better ideas?
Here's my current solution:
{show-if:action=edit}{text-data:Email}{text-data}{show-if}
{hide-if:action=edit}[mailto:{report-info:Email}]{hide-if}
But I believe there's a better way. render=wiki doesn't help. Better ideas?
1
person has this question
I have this question, too!
Tell me when someone answers.
The more people who ask this question, the more it gets noticed.
The more people who ask this question, the more it gets noticed.
-
Inappropriate?I don't know if it's a _better_ way, but an alternate way is to use injection, something like this:
{hide-if:action=edit}{report-on:injected=true}[mailto:%data:Email%]{report-on}{hide-if}
Actually ends up a bit longer than your solution. Use whatever works, I say :)
1 person says
this answers the question
-
Inappropriate?Ok, thanks!!
Loading Profile...



EMPLOYEE