Calguys Content Utlities ans Smarty
Calguys Content Utlities ans Smarty
I was wondering if there is a posibility to make smarty tag working in the backend. I made by Calguys Content Utlities module - a custom dropdown block and put my tag into it. Put the block in my template, and when I'm editing page content I see additiotional field and {my_tag} in it - I want to see results of {my_tag} there. Could it be done?
-
- New Member
- Posts: 6
- Joined: Mon Feb 14, 2011 9:33 pm
Re: Calguys Content Utlities ans Smarty
Hi there,
I figured out a way, and that was to "capture" the value at the top of my template. Then apply an eval var tag to the final output:
eg:
{capture assign='gallerytag'}
{content_module module='CGContentUtils' block='Gallery' name='Gallery' label='Gallery Tag'}
{/capture}
and now with the final output value:
{eval var=$gallerytag}
Hope that helps you.
I figured out a way, and that was to "capture" the value at the top of my template. Then apply an eval var tag to the final output:
eg:
{capture assign='gallerytag'}
{content_module module='CGContentUtils' block='Gallery' name='Gallery' label='Gallery Tag'}
{/capture}
and now with the final output value:
{eval var=$gallerytag}
Hope that helps you.