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)
-   -   Putting some Static Pages in Categories Menu (https://forum.x-cart.com/showthread.php?t=25055)

soyuz02 09-19-2006 12:38 AM

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

pauldodman 09-19-2006 02:07 AM

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.

soyuz02 09-19-2006 06:43 AM

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

pauldodman 09-19-2006 07:08 AM

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.

soyuz02 09-20-2006 03:35 AM

Re: Putting some Static Pages in Categories Menu
 
Worked like a charm, cheers :)


All times are GMT -8. The time now is 12:43 AM.

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