Log in

View Full Version : Easy Hidden Static Pages Mod 4.6.x


topvip
2014-03-24, 07:47 PM
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

{*
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


{*
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}