View Single Post
  #3  
Old 09-19-2006, 06:43 AM
 
soyuz02 soyuz02 is offline
 

Advanced Member
  
Join Date: Jun 2006
Posts: 71
 

Default Re: Putting some Static Pages in Categories Menu

Ok so Ive tried to hard code everything which actually works however the names of the pages are not showing up right in the menu. All pages carry the name of the first statics page. They take you to different pages however the names are all the same. Any ideas?

My categories.tpl

Code:
{* $Id: categories.tpl,v 1.26 2005/11/17 06:55:37 max Exp $ *} {capture name=menu} {if $active_modules.Fancy_Categories ne ""} {include file="modules/Fancy_Categories/categories.tpl"} {assign var="fc_cellpadding" value="0"} {else} {if $config.General.root_categories eq "Y"} <div class="categories"> {foreach from=$categories item=c} <a href="home.php?cat={$c.categoryid}">&raquo;&nbsp;{$c.category}</a> {/foreach} </div> {else} <div class="categories"> {foreach from=$subcategories item=c key=catid} <a href="home.php?cat={$catid}">&raquo;&nbsp;{$c.category}</a> {/foreach} </div> {/if} {/if} {/capture} { include file="menu_cat.tpl" dingbats="dingbats_categorie.gif" menu_title=$lng.lbl_categories menu_content=$smarty.capture.menu cellpadding=$fc_cellpadding}

My sell_menu.tpl which is the menu where all my static pages show up

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

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