I have a ListIt2 instance in which there is a text input field "gallerydir" - this holds the directory name of a Gallery associated with the product, e.g. "Festival". I have created a Products template in which the idea is to show the Gallery for the particular product.
I am trying to do this with this in the template:
Code: Select all
{assign var="gallerycall" value="Gallery dir='Portfolio/`$item->gallerydir`' template='RoyalSlider'"}
{eval var=$gallerycall}
This is simply printing
Gallery dir='Portfolio/Festivalflavour' template='RoyalSlider' rather than evaluating it.
Summary: I am trying to "inject" the Smarty variable $item->gallerydir in to a Gallery call. How should I be doing it?
Thanks
