Calguys Content Utlities ans Smarty

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Locked
_luki

Calguys Content Utlities ans Smarty

Post by _luki »

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?
smokeycam09
New Member
New Member
Posts: 6
Joined: Mon Feb 14, 2011 9:33 pm

Re: Calguys Content Utlities ans Smarty

Post by smokeycam09 »

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.
Locked

Return to “Modules/Add-Ons”