$main variable... where is it, and how can I use it?
I am trying to find a way to tell xCart to open home.tpl with one header or another, based on which page I'm linking in to. I described my problem here: http://forum.x-cart.com/showthread.php?t=25821
I'm not getting any replies on that thread, so striking out on my own, one of my ideas is to use $main to determine what kind of page I linked to, and then use that in an {if} statement to select which header, column format, etc, to use.
Can someone tell me how to use $main ? Where is it, how do I read it, and where does it get its value? Can I define other values that it can take?
Thanks.
__________________
xcart v4.0.18 [linux]
Loyalty Points, DSEFU, Easy Checkout, Featured Product Manager, Remember Me, Relevant Search, Vertical Flyouts, Multiple Category Templates. Loads of other tweaks and mods learned in forums.
|