X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   Easy Hidden Static Pages Mod 3.5.x (https://forum.x-cart.com/showthread.php?t=8445)

adpboss 07-13-2004 08:46 PM

Easy Hidden Static Pages Mod 3.5.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:

{* $Id: pages_menu.tpl,v 1.2 2003/04/10 13:07:54 svowl Exp $ *}
{section name=pg loop=$pages_menu}
{$pages_menu[pg].title}

{/section}


change to

Code:

{* $Id: pages_menu.tpl,v 1.2 2003/04/10 13:07:54 svowl Exp $ *}
{section name=pg loop=$pages_menu}
{if $pages_menu[pg].orderby ne 99}
{$pages_menu[pg].title}

{/if}
{/section}


funkydunk 07-15-2004 02:16 AM

totally agree adp - the static pages side coul dbe sooo much better if:

you could disable a page but still access it. I have done a similiar mod as you have here for that very reason but did it slightly differently. I edited the php scripts to stop the site doing the work in retreiving the page names if it isnt going to use them.

Also it has to have a wysiwyg editor there... that is why I have built in htmlarea into variuous sites so that clients could use that to actually creates pages rather than just display text.

PhilJ 12-08-2004 06:48 AM

Nice simple mod this, but has anyone got this working for v4.x ?

shan 12-08-2004 07:20 AM

cant see any reason why this would not work for 4 too

another way around is to set the order by to what you would normally and then set the one you want to hide to say 99 and the say

{if $pages_menu[pg].orderby eq 99}

instead. this way you still have control over the order of the other pages

PhilJ 12-08-2004 07:29 AM

Sorry, works fine, my stupid fault :oops:

nfc5382 12-08-2004 10:17 AM

thanks

Stephen Hatton 12-08-2004 12:19 PM

Hidden static pages
 
Hi All

I have a method of having pages on the menu, pages disabled and pages that are hidden. All are accessable inside the cart framework.

Here is my last post:
http://forum.x-cart.com/viewtopic.php?t=13705&highlight=hidden+pages+hatto n

Here is a sample of hidden pages:
Normal menu pages:
http://www.eotr.com/Light4Life/pages.php?pageid=2

Hidden pages (not on menu):
http://www.eotr.com/Light4Life/EOTRpages.php?pageid=19

Test pages (not on menu and not available but viewable outside of admin):
http://www.eotr.com/Light4Life/EOTRtestpages.php?pageid=14
(it is a test page for Gijs Himpe of the forum)

(There is another test page for forum members - search my posts for this one).

All pages are individually addressable.

I have over 200 pages assigned - about 25% are done, the others are awaiting completion and page linking from other pages.

If you have a need for these, email me for details:
stephen_hatton1959@yahoo.com.au

Regards
Ing. Stephen Hatton
:idea:

northstar 11-30-2008 07:27 PM

Re: Easy Hidden Static Pages Mod 3.5.x
 
I am also trying to make hidden static pages that don't show up in the menu. I've tried following the above directions, but to no avail...I get smart errors every time.

I want to have about 8 static pages listed in my menu (in a specified order of 1-8), but then have other hidden pages (specified at higher numbers starting at 91, as suggested above by SHAN). This is what my pages_menu.tpl file looks like.

Quote:

{* $Id: pages_menu.tpl,v 1.5 2005/11/17 06:55:36 max Exp $ *}
{section name=pg loop=$pages_menu}
<a href="pages.php?pageid={$pages_menu[pg].pageid}" class="VertMenuItems">{$pages_menu[pg].title}</a><br />
{/section}


What exactly does this text need to look like to achieve my desired results? Thank you for any help you may give me!


All times are GMT -8. The time now is 03:27 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.