Smarty in Template page vars

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
Chris
Forum Members
Forum Members
Posts: 49
Joined: Tue Mar 22, 2005 6:59 pm

Smarty in Template page vars

Post by Chris »

Hi All,

I use the webshop module (esshop) and I want to set a differtent for every category. There are 2 cats at the moment so I wanted to do this in the Main Template with Smarty.

But this doesn't work

{if page eq Webshop}
  {if CategoryID eq 1)
    Something
  {else}
    Something else
  {/if}
{else}
  {sitename} - {title}
{/if}

Is there a way I van findout which vars are known by smarty when parsing the template?
cyberman

Re: Smarty in Template page vars

Post by cyberman »

Chris wrote: {if page eq Webshop}
  {if $CategoryID eq 1)
      Something
  {else}
      Something else
  {/if}
{else}
  {sitename} - {title}
{/if}
Every variable should have the sign "$" at first 8).
Is there a way I van findout which vars are known by smarty when parsing the template?
Use {get_template_vars} tag ;) ... attention, the results of this tag are without $.
Post Reply

Return to “Modules/Add-Ons”