Not working yet.
--- is the var assign good for the enitre template, and nested templates further down the page?
For example:
the file, modules/Extra_Fields/product.tpl looks like:
Code:
{section name=field loop=$extra_fields}
{if $extra_fields[field].field eq "Ingredients"}
{if $extra_fields[field].field_value ne ""}
{assign var="ingred" value=$extra_fields[field].field_value}
{/if}
{/if}
{/section}
then in product.tpl (toward the top), I include the template:
Code:
{if $active_modules.Extra_Fields ne ""}
{include file="modules/Extra_Fields/product.tpl"}
{/if}
so then, the var, {$ingred} should be propagated from here on within product.tpl, yes?
Should I be able to use the var like this, somewhere lower on the product.tpl page:
Code:
<img src="/product-images/ingredients/{$ingred}" />
Unfortunately, it's not working. {$ingred) simply comes back blank. Nothing there. AM I MISSING SOMETHING in assigning the var?
Thanks in advance for looking at this.
Jeremy