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

New menu for Static Pages

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 04-18-2007, 08:48 AM
 
soyuz02 soyuz02 is offline
 

Advanced Member
  
Join Date: Jun 2006
Posts: 71
 

Exclamation New menu for Static Pages

Hi,

I wanted my static pages to appear in a new menu rather than the help menu.

The first thing I did was to go to the help.tpl file and quoted out the include:

{*{include file="pages_menu.tpl"}*}

I then created a new menu rsinfo_menu.tpl:

{* $Id: rsinfo_menu.tpl,v 1.5 2005/11/17 06:55:36 max Exp $ *}
{capture name=menu}
<div class="categories">
{section name=pg loop=$pages_menu}
<a href="pages.php?pageid={$pages_menu[pg].pageid}">&raquo;&nbsp;{$pages_menu[pg].title}</a>
{/section}
</div>
{/capture}
{ include file="menu_cat.tpl" menu_title="RADAR SPRAY INFO" menu_content=$smarty.capture.menu }

Then I went on to insert this menu in the skin1/customer/home.tpl file.

The new menu now appears on my site however it does not list the static pages.

Also when I create static pages and try to access them, xcart tells me that the requested page cannot be found.

Any ideas on this?

Thanks guys.
__________________
X-Cart Version :: 4.1.6 (Finally)
X-Cart Mods :: Kids Skin by 7dana
Running on :: SUSE Linux 9.3 with Plesk 7.5.4
Webserv :: Apache 2.0.53
mySQL :: 4.1.10
PHP :: 4.3.10
Reply With Quote
  #2  
Old 04-18-2007, 08:49 AM
 
balinor balinor is offline
 

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

Default Re: New menu for Static Pages

Replace this:

<div class="categories">
{section name=pg loop=$pages_menu}
<a href="pages.php?pageid={$pages_menu[pg].pageid}">&raquo;&nbsp;{$pages_menu[pg].title}</a>
{/section}
</div>

with this:

{include file="pages_menu.tpl"}
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 04-18-2007, 08:54 AM
 
soyuz02 soyuz02 is offline
 

Advanced Member
  
Join Date: Jun 2006
Posts: 71
 

Default Re: New menu for Static Pages

Yeah that didnt work unfortunately, I really cant understand it... Thanks
__________________
X-Cart Version :: 4.1.6 (Finally)
X-Cart Mods :: Kids Skin by 7dana
Running on :: SUSE Linux 9.3 with Plesk 7.5.4
Webserv :: Apache 2.0.53
mySQL :: 4.1.10
PHP :: 4.3.10
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 03:08 AM.

   

 
X-Cart forums © 2001-2020