View Single Post
  #1   IP: 153.99.31.130
Old 2014-03-24, 07:47 PM
topvip topvip is offline
超级版主
 
Join Date: 2006-01-04
Posts: 1206
topvip 正向着好的方向发展
Default Easy Hidden Static Pages Mod 4.6.x

Ok. This has to be one of the most annoying things in X-Cart. You can either enable or disable a Static Page but if you want to enable it throughout the customer front end by direct link, but not in the help menu here is the trick.

First set all of the Help Menu Hidden Static Pages (HMHSP) to the same order by # in the admin. I use 99.

In skin1/pages_menu.tpl

change from
Code:
{*
850e5138e855497e58a9e99e00c2e8e04e3f7234, v1 (xcart_4_4_0_beta_2), 2010-05-21 08:31:50, pages_menu.tpl, joy
vim: set ts=2 sw=2 sts=2 et:
*}
{section name=pg loop=$pages_menu}
  <a href="pages.php?pageid={$pages_menu[pg].pageid}" class="VertMenuItems">{$pages_menu[pg].title}</a><br />
{/section}
change to

Code:
{*
850e5138e855497e58a9e99e00c2e8e04e3f7234, v1 (xcart_4_4_0_beta_2), 2010-05-21 08:31:50, pages_menu.tpl, joy
vim: set ts=2 sw=2 sts=2 et:
*}
{section name=pg loop=$pages_menu}
{if $pages_menu[pg].orderby ne 99}
  <a href="pages.php?pageid={$pages_menu[pg].pageid}" class="VertMenuItems">{$pages_menu[pg].title}</a><br />
{/if}
{/section}
Reply With Quote