网络营销电子商务研究中心

网络营销电子商务研究中心 (https://www.0058.net/index.php)
-   X-Cart (https://www.0058.net/forumdisplay.php?f=70)
-   -   reating a new page inside the cart. (https://www.0058.net/showthread.php?t=5069)

Negaunee 2015-04-02 11:12 PM

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?


All times are GMT +8. The time now is 07:54 PM.

Powered by vBulletin Version 3.8.7
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.