View Single Post
  #2  
Old 03-08-2003, 05:40 PM
 
Cameron Cameron is offline
 

eXpert
  
Join Date: Jan 2003
Location: Washington State, USA
Posts: 224
 

Default

I decided that I needed to just get this done and not worry about what directory the files are in. They're not over two directories deep, so the SE spiders shouldn't pooh on the site. BUT I also knew I didn't want to have a help.php?section= type of link since spiders hate question marks, and the HTML catalog appears to only be for products.

So here was my solution. Hopefully it will help other people, too.

I opened /store/customer/home.php and saved it as:

/store/customer/choose.php

Then I Modified:
Quote:
#
# Assign Smarty variables and show template
#

$smarty->assign("main","choose");
$smarty->assign("location",$location);
$smarty->display("customer/home.tpl");
(only the first $smarty variable is changed from the original)

Next I went into store/skin1/customer/home_main.tpl and added:

Quote:
{elseif $main eq "choose"}
{include file="customer/main/choose.tpl"}

Then finally, created customer/main/choose.tpl based on welcome.tpl

Now I have /store/customer/choose.php with all of my x-cart .tpl files in it. It's not the ideal solution of having choose.php be in my root foler, but it works.

Cameron
Reply With Quote