Within a template I have set a hidden content block to capture an email address in the Page Editor, then pass it to the {mailto} Smarty, thus:
Code: Select all
<div id="hidden">{content block="email" oneline='true' wysiwyg='false' assign=email1}</div>
{mailto address=$email1 encode='hex'}
I thought of doing something this:
Code: Select all
if ( isset($params['email1']) && !empty($params['email1'])) {
then execute a {mailto ...};
}
Any help on this? Thank you. I am learning gobs but this one I have hit the wall of my own grasp of PHP syntax.
Wayne
