View Single Post
  #1   IP: 112.87.17.126
Old 2015-04-02, 11:12 PM
Negaunee Negaunee is offline
初级会员
 
Join Date: 2005-08-12
Posts: 1
Negaunee 现在声名狼藉
Default reating a new page inside the cart.

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?
Reply With Quote