| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Edit <head> of home page | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Edit <head> of home page
Hello,
How do you do an if statement to add content to the head section of the home page only? I know to add to category page, you use {if $cat eq "xxx"} CODE {/if} But how do you do an if statement for the home page? Thanks!
__________________
version 4.1.7 |
|||||||
#2
|
|||||||
|
|||||||
Re: Edit <head> of home page
Quote:
You can determine any page variable by using webmaster mode. xcart_admin > Tools > Webmaster mode Not only can you see the template structure, you can also see the variables. $main is the variable that you want to analyze. Additionally, if you evaluate the file, /skin/common_files/customer/home_main.tpl you will be able to see many of the $main if statements that already are working for you... the default $main for the home page is: Code:
BUT - I hope you don't have to ask for a $main variable here again -- the power is right in front of you!!!
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4 |
|||||||
|
|||
X-Cart forums © 2001-2020
|