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

Create New Page, Not Using Static Page Functions

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 03-06-2007, 01:52 PM
 
bmm bmm is offline
 

Member
  
Join Date: Apr 2003
Location: Laguna Beach, Ca
Posts: 11
 

Default Create New Page, Not Using Static Page Functions

Hi,
I would like to create a new page that resides outside of my X-Cart directory and that can includes header, footer, side nav, etc. X-Cart is installed in my root directory, so I would like to set up (x-cart_root/new_directory/new_page.php).

I don▓t want to use either of X-Cart▓s static page options;
X-cart embedded page; due to the fact that I can not control the directory (e.g. public_html/skin1/pages/US/)
Or
X-cart Root Level; does not have the header, footer, side nav, etc.

I know I have to create a ⌠new_page.php■ and ⌠new_page.tpl■, but I▓m not sure of the code for each page, how to reference each other and where ⌠new_page.tpl■ should reside.
Also, I▓m pretty sure I have to reference ⌠new_page.tpl■ on the ⌠home_main.tpl■.

Sorry, if this is posted, I looked and found many bits and pieces, but nothing I could follow to do this completely.
Can anyone walk me through the steps?

TIA
__________________
Well, someone has the answer, go find them!

x-cart gold version 4.0.12
apache 1.3.33 linux
perl 5.008 linux
php 4.3.10 linux
mysql 4.0.22-standard
Reply With Quote
  #2  
Old 03-06-2007, 03:41 PM
 
inebriate inebriate is offline
 

eXpert
  
Join Date: May 2006
Posts: 301
 

Default Re: Create New Page, Not Using Static Page Functions

have a look at http://forum.x-cart.com/showthread.php?t=28870
__________________
x-cart pro 4.0.18
linux
www.fabric8d.com (currently undergoing construction)
Reply With Quote
  #3  
Old 03-06-2007, 04:08 PM
 
bmm bmm is offline
 

Member
  
Join Date: Apr 2003
Location: Laguna Beach, Ca
Posts: 11
 

Default Re: Create New Page, Not Using Static Page Functions

Thanks, I read this and tried some things, but I still can't get my head around this!

So, new_page.tpl goes into (/skin1/customer)

And new_page.php can reside in (x-cart_root/new_directory/new_page.php)


In new_page.php, I need to call;

$smarty->assign("location", $location);

func_display("customer/new_page.tpl",$smarty);

Right?

Thanks
__________________
Well, someone has the answer, go find them!

x-cart gold version 4.0.12
apache 1.3.33 linux
perl 5.008 linux
php 4.3.10 linux
mysql 4.0.22-standard
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 11:23 AM.

   

 
X-Cart forums © 2001-2020