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

seperate / second front page

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 12-13-2005, 06:18 PM
 
rgbman rgbman is offline
 

Advanced Member
  
Join Date: Dec 2005
Posts: 33
 

Default seperate / second front page

I am interested in creating a sperate front page with some of the menus in it. Then whatever they click on will take them to what would normally be the front page home.php I think.

Thanks
__________________
4.0.17
Reply With Quote
  #2  
Old 12-14-2005, 03:47 AM
 
balinor balinor is offline
 

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

Default

You could use index.html.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 12-14-2005, 12:08 PM
 
rgbman rgbman is offline
 

Advanced Member
  
Join Date: Dec 2005
Posts: 33
 

Default

One I want to make it dynamic so it would still contain some menus (menus in different layout) but no content. Then they would click on anything and it would take them to the regular page which has the menus down the left and the content on the right.
__________________
4.0.17
Reply With Quote
  #4  
Old 12-15-2005, 08:30 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

edit home.tpl and add an if statement that checks where you are.

if you look in home_main.tpl youll see how home.tpl knows what section your looking at
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #5  
Old 12-15-2005, 05:53 PM
 
Lionel Lionel is offline
 

Senior Member
  
Join Date: Dec 2005
Posts: 199
 

Default

here is how I created my "otherpage.php"

Code:
<?php define('OFFERS_DONT_SHOW_NEW',1); require "./auth.php"; $smarty->assign("main","catalog"); $smarty->assign("location", $location); func_display("customer/mytemplate.tpl",$smarty); ?>
mytemplate.tpl below contains what I want to display.
Code:
{* $Id: mytemplate.tpl,v 1.67.2.10 2005/10/31 11:36:14 max Exp $ *} {if $printable ne ''} {include file="customer/home_printable.tpl"} {else} {config_load file="$skin_config"} <HTML> <HEAD> <TITLE> {if $config.SEO.page_title_format eq "A"} {section name=position loop=$location} {$location[position].0|escape} {if not %position.last%} :: {/if} {/section} {else} {section name=position loop=$location step=-1} {$location[position].0|escape} {if not %position.last%} :: {/if} {/section} {/if} </TITLE> { include file="meta.tpl" } <LINK rel="stylesheet" href="{$SkinDir}/{#CSSFile#}"> <LINK rel="stylesheet" href="{$SkinDir}/tabs.css"> </HEAD> <BODY leftmargin="0" topmargin="0" rightmargin="0" bottomargin="0" marginwidth="0" marginheight="0"{if $body_onload ne ''} onload="{$body_onload}"{/if}> { include file="rectangle_top.tpl" } { include file="head.tpl" } {if $active_modules.SnS_connector} {include file="modules/SnS_connector/header.tpl"} {/if} {capture name=whatever} fill in the space to your heart content {/capture} {include file="dialog.tpl" title= "Your Title" content=$smarty.capture.whatever extra="width=100%"} { include file="rectangle_bottom.tpl" } </BODY> </HTML> {/if}

an example

http://www.haitiwebs.net/ecommerce/states.php?state=Alaska
__________________
X-Cart Gold 4.0.17 [unix]
X-Cart Gold 4.0.18 [unix]
Reply With Quote
  #6  
Old 12-15-2005, 06:01 PM
 
rgbman rgbman is offline
 

Advanced Member
  
Join Date: Dec 2005
Posts: 33
 

Default

Thanks for the help. I will see if I can use these tips to make a root page and then have the home page.
I will start messing with it very soon maybe tonight. I am sure I will run into some problems that are not apparent right now.
__________________
4.0.17
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 02:43 PM.

   

 
X-Cart forums © 2001-2020