Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

How to Edit the Front Page Only

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 11-29-2007, 04:03 PM
 
anela2003 anela2003 is offline
 

Senior Member
  
Join Date: Nov 2007
Posts: 103
 

Default 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.
__________________
4.1.9 Gold

window valances | curtains
Reply With Quote
  #2  
Old 11-29-2007, 04:28 PM
 
anela2003 anela2003 is offline
 

Senior Member
  
Join Date: Nov 2007
Posts: 103
 

Default 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.
__________________
4.1.9 Gold

window valances | curtains
Reply With Quote
  #3  
Old 11-29-2007, 04:50 PM
 
anela2003 anela2003 is offline
 

Senior Member
  
Join Date: Nov 2007
Posts: 103
 

Default 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.
__________________
4.1.9 Gold

window valances | curtains
Reply With Quote
  #4  
Old 11-29-2007, 05:47 PM
 
anela2003 anela2003 is offline
 

Senior Member
  
Join Date: Nov 2007
Posts: 103
 

Default 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?
__________________
4.1.9 Gold

window valances | curtains
Reply With Quote
  #5  
Old 11-29-2007, 06:22 PM
 
Duramax 6.6L Duramax 6.6L is offline
 

X-Adept
  
Join Date: Dec 2006
Posts: 865
 

Default Re: How to Edit the Front Page Only

I personally would use Dream weaver to edit. Supports css better.
__________________
Xcart 5.1.6 Building New Store
Xcart4.6.4 Gold Plus
Xcart 4.6.4 Platinum
Smart Template,
Mail Chimp Upgrade
Checkout One (One Page Checkout)
Checkout One X-Payments Connector
Checkout One Deluxe Tools
Call For Price
On Sale Module
Buy Together Module
MAP Price MOD
Reply With Quote
  #6  
Old 11-29-2007, 06:38 PM
 
anela2003 anela2003 is offline
 

Senior Member
  
Join Date: Nov 2007
Posts: 103
 

Default Re: How to Edit the Front Page Only

Ok...
__________________
4.1.9 Gold

window valances | curtains
Reply With Quote
  #7  
Old 11-29-2007, 07:07 PM
 
anela2003 anela2003 is offline
 

Senior Member
  
Join Date: Nov 2007
Posts: 103
 

Default 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.
__________________
4.1.9 Gold

window valances | curtains
Reply With Quote
  #8  
Old 11-29-2007, 07:23 PM
 
Duramax 6.6L Duramax 6.6L is offline
 

X-Adept
  
Join Date: Dec 2006
Posts: 865
 

Default 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.
__________________
Xcart 5.1.6 Building New Store
Xcart4.6.4 Gold Plus
Xcart 4.6.4 Platinum
Smart Template,
Mail Chimp Upgrade
Checkout One (One Page Checkout)
Checkout One X-Payments Connector
Checkout One Deluxe Tools
Call For Price
On Sale Module
Buy Together Module
MAP Price MOD
Reply With Quote
  #9  
Old 11-30-2007, 04:10 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default 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!
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


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

   

 
X-Cart forums © 2001-2020