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)
-   -   New menu for Static Pages (https://forum.x-cart.com/showthread.php?t=30524)

soyuz02 04-18-2007 08:48 AM

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.

balinor 04-18-2007 08:49 AM

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"}

soyuz02 04-18-2007 08:54 AM

Re: New menu for Static Pages
 
Yeah that didnt work unfortunately, I really cant understand it... Thanks


All times are GMT -8. The time now is 09:05 PM.

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