View Single Post
  #4  
Old 07-14-2007, 02:14 PM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default Re: Creating a new page inside the cart.

Glad this is workling for you... the trick to putting a static embeeded page into another menu is:

1. set the POS of the NEW static embedded (that you want to exclude from help section) to a high number (i.e. >900;
2. your template file, pages_menu.tpl probably started out looking like this:

Code:
{section name=pg loop=$pages_menu} <A href="pages.php?pageid={$pages_menu[pg].pageid}" class="VertMenuItems">{$pages_menu[pg].title}</A><BR> {/section}

Instead, make it look like this:

Code:
{section name=pg loop=$pages_menu} {if $pages_menu[pg].orderby > 900} {else} <A href="pages.php?pageid={$pages_menu[pg].pageid}" class="VertMenuItems">{$pages_menu[pg].title}</A><BR> {/if} {/section}

SO -- at this point, any static embedded page with POS >900 will be excluded from pages_menu.tpl

Cool, huh?

Now, at this point, you can hard-code the page into any menu you want.

That's one of my all-time favorite and simple hacks.

You can also get tricky and put static embedded pages into ranges -- then put a loop into a new menu template and automatically pull all pages from 700-799 into menu XYZ or whatever... got it?
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote