Page 1 of 1

[solved] CGSimpleSmarty breaks Smarty mailto

Posted: Thu Jun 14, 2012 1:00 pm
by asdf
I have content block "contact" on one of the templates. There I use {mailto} tag to encode email address. This works fine.

Now I need to show the same contact information on sub-pages of this page. To avoid filling in same info many times I use CGSimpleSmarty: {$cgsimple->get_page_content($cgsimple->get_parent_alias(),contact)}. This works except for {mailto} tag which does not get run through Smarty but is shown as regular text.

Is there any way to make this work?

Re: CGSimpleSmarty breaks Smarty mailto

Posted: Fri Jun 15, 2012 10:07 pm
by Dr.CSS
I'm thinking you may need to eval= the content, either in the original page or in your cgsimplesmarty call, search the forum, I've seen this before...

Re: CGSimpleSmarty breaks Smarty mailto

Posted: Mon Jun 18, 2012 8:29 am
by asdf
Thanks a lot! {eval var=$cgsimple->get_page_content($cgsimple->get_parent_alias(),contact)} works.