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

Putting some Static Pages in Categories Menu

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 09-19-2006, 12:38 AM
 
soyuz02 soyuz02 is offline
 

Advanced Member
  
Join Date: Jun 2006
Posts: 71
 

Default Putting some Static Pages in Categories Menu

Hi,

basically all my static pages appear under a new menu which I created underneath my Categories menu. However I would like to put some static pages under the Categories menu. They of doing so that i had figured was to create a static page in the backend, disable it and manually insert it into the categories menu. Is this the right way of doing 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
  #2  
Old 09-19-2006, 02:07 AM
  pauldodman's Avatar 
pauldodman pauldodman is offline
 

X-Guru
  
Join Date: Jul 2003
Location: Spain / UK
Posts: 3,062
 

Default Re: Putting some Static Pages in Categories Menu

Can you still see it if it's disabled?
It is the right way to do it, but if you only want it to appear in the categories menu, you need to disable the loop in your other menu that displays all the pages. Then hard code (as you have done) the pages you want, in whatever menus you want.
__________________
Paul Dodman
e-business & m-commerce consultant
w: www.luminointernet.com
e: xcart@luminointernet.com

Professional X-Cart help, advice, support and services, specialists in Mobile X-Cart.
Reply With Quote
  #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
  #4  
Old 09-19-2006, 07:08 AM
  pauldodman's Avatar 
pauldodman pauldodman is offline
 

X-Guru
  
Join Date: Jul 2003
Location: Spain / UK
Posts: 3,062
 

Default Re: Putting some Static Pages in Categories Menu

It will, you have hard coded the code for each page to be:
{$pages_menu[pg].title} for each page.
You need to change this for each line and put in exactly what you want to see displayed. So for Page 6, you want it to say This is a a page.
and then for page 7, this is a different page.
etc.
__________________
Paul Dodman
e-business & m-commerce consultant
w: www.luminointernet.com
e: xcart@luminointernet.com

Professional X-Cart help, advice, support and services, specialists in Mobile X-Cart.
Reply With Quote
  #5  
Old 09-20-2006, 03:35 AM
 
soyuz02 soyuz02 is offline
 

Advanced Member
  
Join Date: Jun 2006
Posts: 71
 

Default Re: Putting some Static Pages in Categories Menu

Worked like a charm, cheers
__________________
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 12:49 AM.

   

 
X-Cart forums © 2001-2020