View Single Post
  #1  
Old 08-12-2006, 03:48 AM
 
soyuz02 soyuz02 is offline
 

Advanced Member
  
Join Date: Jun 2006
Posts: 71
 

Default Creating new Menu for Static Pages

Hi,

I wanted to create a new menu to display the links to all the static pages I create instead of having them under "Help". I followed the intructions below and it worked just fine.

Quote:
Originally Posted by NightFire
In the skin1 folder look for the help.tpl file.
Inside that file look for this line:

Code:
{include file="pages_menu.tpl"}

Change it to:
Code:
{*{include file="pages_menu.tpl"}*}
This will prevent the static pages showing up in the help section.

To create a menu with only the static pages links:
In the skin1 directory create a new file called for example: new_menu.tpl

And place this code in it:

Code:
{capture name=menu} {include file="pages_menu.tpl"} {/capture} { include file="menu.tpl" dingbats="dingbats_help.gif" menu_title=$lng.lbl_help menu_content=$smarty.capture.menu}

You can adjust the menu to your liking by changing the lbl_help variable.

In skin1/customer/home.tpl insert this code where you want to include the menu:

Code:
{include file="new_menu.tpl" }

This should do the trick

However I do have one small issue. I have integrated the menu so that it comes up on the left side below the categories menu. Is does this fine however the formatting was slightly different. I wanted to assign the same css class as the categories menu. Hence in the pages menu I added div tags to make it look like this:

Code:
{* $Id: pages_menu.tpl,v 1.5 2005/11/17 06:55:36 max Exp $ *} {section name=pg loop=$pages_menu} <div class="categories"> {$pages_menu[pg].title} </div> {/section}

It works but it shifts the new links slightly inwards and not flush against the left side like in the categories menu. Looks like this:

http://www.bccbdubai.com/problem2.jpg

Any ideas how I can make it look like under the categories menu?

Would be a great help. 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