[solved] CGSimpleSmarty breaks Smarty mailto

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
asdf
Forum Members
Forum Members
Posts: 39
Joined: Thu Jul 08, 2010 1:11 pm

[solved] CGSimpleSmarty breaks Smarty mailto

Post 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?
Last edited by asdf on Mon Jun 18, 2012 8:30 am, edited 1 time in total.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: CGSimpleSmarty breaks Smarty mailto

Post 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...
asdf
Forum Members
Forum Members
Posts: 39
Joined: Thu Jul 08, 2010 1:11 pm

Re: CGSimpleSmarty breaks Smarty mailto

Post by asdf »

Thanks a lot! {eval var=$cgsimple->get_page_content($cgsimple->get_parent_alias(),contact)} works.
Post Reply

Return to “Modules/Add-Ons”