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)
-   -   seperate / second front page (https://forum.x-cart.com/showthread.php?t=18652)

rgbman 12-13-2005 06:18 PM

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

balinor 12-14-2005 03:47 AM

You could use index.html.

rgbman 12-14-2005 12:08 PM

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.

shan 12-15-2005 08:30 AM

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

Lionel 12-15-2005 05:53 PM

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

rgbman 12-15-2005 06:01 PM

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.


All times are GMT -8. The time now is 01:46 AM.

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