X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   How to Edit the Front Page Only (https://forum.x-cart.com/showthread.php?t=35805)

anela2003 11-29-2007 04:03 PM

How to Edit the Front Page Only
 
I have two questions, each in need of being answered as much as the other one.

1) - I'd like to be able to control the left-side menu and specify whether it is displayed on a per-page basis. I'd like to place one large picture on my home page so I don't want the left-side column. I do, however, want the left-side column when my customers browse through the categories. How do I control that?

2) I don't want my site to display the "ENTER SITE" page before going to the home.php file. I tried using my web-host's redirect option (which has worked before on my other site), but it doesn't work on x-cart. So how do I redirect to my home.php file?

----------
Question 1) is of greatest concern to me, but if someone could also answer 2) in addition to 1), I'd be also thankful.

Thank you.

anela2003 11-29-2007 04:28 PM

Re: How to Edit the Front Page Only
 
Oh, and I don't want to just "hide" the left column, I want my main page to actually take up the space where it was, meaning that it would take up 100% of the width.

anela2003 11-29-2007 04:50 PM

Re: How to Edit the Front Page Only
 
Ok, I've gotten rid of one of my <td> columns in my customer/home.tpl file and the front page is the way I want it, but I didn't get what I wanted on my other pages, which is the category menu on the left side. Isn't there some {if} command or extra template that I can add/create that will say something like "INCLUDE THE VERTICAL LEFT TD COLUMN EVERYWHERE BUT THE HOMEPAGE"?

I'm new at X-Cart, as everyone can tell.

anela2003 11-29-2007 05:47 PM

Re: How to Edit the Front Page Only
 
Well, I've tried going into the home.tpl and replacing:

{include file="stuffonleftside.tpl"}

with

{if $main ne "catalog" or $current_category.category ne ""}
{include file="stuffonleftside.tpl"}
{/if}

While it DID take out the left side contents on the homepage and left it as is on the other pages, it still left a big white space that my homepage image didn't fill up across entire 100% page width. :( Help?

Duramax 6.6L 11-29-2007 06:22 PM

Re: How to Edit the Front Page Only
 
I personally would use Dream weaver to edit. Supports css better.

anela2003 11-29-2007 06:38 PM

Re: How to Edit the Front Page Only
 
Ok...

anela2003 11-29-2007 07:07 PM

Re: How to Edit the Front Page Only
 
I think I partially solved my own problem (only to find a bigger one).

I created a new home.tpl-like template that excluded the left vertical column. It got the job done and my homepage has an image that spans 100% across it. And yes, static pages display the left column just like I wanted.

The problem though is...
Everything that starts with home.php?... is not displaying the left column, including my categories.

Isn't there something that will allow this remove-left-side command only on the homepage and nothing else?

Please keep it in simple terms, I just purchased X-cart the day before yesterday.

Here's my overly basic and boring site:
http://www.prioritywindows.com

I'm too embarassed to link to it, but it might help you guys help me.

(As you can see, I took care of the splash page problem).

Any help is appreciated, really.

Duramax 6.6L 11-29-2007 07:23 PM

Re: How to Edit the Front Page Only
 
I believe that you would have to modify the code with if statement so that on certain pages it displays one way and on other pages it displays a different way.

Before modifying to much, you should read up on smarty, css, php as xcart is template driving. Xcart has a steep learning curve, but once you start, it will be easy do do what you want.

balinor 11-30-2007 04:10 AM

Re: How to Edit the Front Page Only
 
Welcome to the X-Cart forums! Please start by reading the following thread, which will help you get started and hopefully make your experience here a positive one:

http://forum.x-cart.com/showthread.php?t=23970

Please note that this link is not an answer to your question, but we need you to update your signature with your X-Cart version so that we can answer your questions correctly. Thanks! :)


All times are GMT -8. The time now is 07:37 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.