| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Test for home page | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Test for home page
I would like the front page of an X-cart installation to have three columns and the other pages to have two columns. What is the test for the home page?
Here is a model of what I need. I only need the test for the first line. if(page = home) three columns else two columns Thanks a bunch!!!
__________________
4.5.5 Nora McDougall-Collins Montana Webmaster Team |
|||||||
#2
|
|||||||||
|
|||||||||
Re: Test for home page
Code:
__________________
Developing in 4.7.x now (Dipping into v5 - Slowly!) Have used 4.1.x, 4.2.x, 4.4.x, 4.5.x, 4.6.x & 4.7.x Multiple Instances of X-Cart MySQL 5.6.37 CentOS 7.4 Chamber Internet - Lancashire, United Kingdom http://www.chamberelancs.co.uk |
|||||||||
#3
|
|||||||
|
|||||||
Re: Test for home page
Thanks so much! It worked!!! I do find it strange that the home page of the shopping cart is "catalog." Is that to differentiate it with the static pages?
I'm just realized I've been a little dense. "eq" means = then. I kept wondering what all the eq's were.
__________________
4.5.5 Nora McDougall-Collins Montana Webmaster Team |
|||||||
#4
|
|||||||||
|
|||||||||
Re: Test for home page
Look in home_main.tpl and common_templates.tpl - you can find 90% of the $main values in there
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
|
#5
|
|||||||
|
|||||||
Re: Test for home page
Excellent lead, Steve! But, it would be helpful if each if in these files - and each file - were commented. For example, what is the scope of the content in "catalog" as compared to "product". I think it would save a lot of time opening files and reading code that ends up not being what someone needs. And, it could save a lot of time asking questions in the forum.
__________________
4.5.5 Nora McDougall-Collins Montana Webmaster Team |
|||||||
#6
|
|||||||
|
|||||||
Re: Test for home page
Quote:
If you use webmaster mode, you won't have to ask the forum for your $main eq or other variables. Webmaster mode has two modes: templates and variables. It's gonna be your BFF
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4 |
|||||||
|
|||
X-Cart forums © 2001-2020
|