I am trying to write a line of code for CS Cart v. 4.x where it recognizes if the page is on the Home (index) page or not.
I attempted a number of different syntax for this, but could not get any to work:
{if $controller =='index'}
{if $controller =='index.index'}
I was wondering if anyone knows the proper code for recognizing if the site is on the home page or not.
Ultimately, I am trying to have a banner display in the header section on the Home page only.
Thank you in advance
Hi,
Please try
{if $runtime.controller=='index' && $runtime.mode=='index'}
...
{/if}
I hope that helps,
—
Valentin
[color=#808080][size=2]part of hungryweb.net[/size][/color]
Perfect, I tried both of those separately but that works great.