Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Easy Hidden Static Pages Mod 3.5.x

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #1  
Old 07-13-2004, 08:46 PM
  adpboss's Avatar 
adpboss adpboss is offline
 

X-Man
  
Join Date: Feb 2003
Location: Ontario, Canada
Posts: 2,389
 

Default 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}
Reply With Quote
  #2  
Old 07-15-2004, 02:16 AM
 
funkydunk funkydunk is offline
 

X-Man
  
Join Date: Oct 2002
Location: Cambridge, UK
Posts: 2,210
 

Default

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.
__________________
ex x-cart guru
Reply With Quote
  #3  
Old 12-08-2004, 06:48 AM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 3,927
 

Default

Nice simple mod this, but has anyone got this working for v4.x ?
__________________
XCARTMODS.CO.UK | reBOOT Template | Changelog
Reply With Quote
  #4  
Old 12-08-2004, 07:20 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

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
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #5  
Old 12-08-2004, 07:29 AM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 3,927
 

Default

Sorry, works fine, my stupid fault
__________________
XCARTMODS.CO.UK | reBOOT Template | Changelog
Reply With Quote
  #6  
Old 12-08-2004, 10:17 AM
 
nfc5382 nfc5382 is offline
 

X-Adept
  
Join Date: Nov 2002
Posts: 472
 

Default

thanks
__________________
-----------------------
x-cart v4.7.6 [LIVE]
x-cart v4.0.18 [retired 2004-2016]
x-cart v3.5.13 [retired]
x-cart v3.4.14 [retired]
Reply With Quote
  #7  
Old 12-08-2004, 12:19 PM
  Stephen Hatton's Avatar 
Stephen Hatton Stephen Hatton is offline
 

Senior Member
  
Join Date: Mar 2004
Location: Melbourne, Australia
Posts: 182
 

Default 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
__________________
Apache Linux V1.3.33
PERL version: 5.8.0
PHP version: 4.3.11
MySQL version: 4.0.22-standard
X-cart V4.0.17: Addons: X-PConfig, X-Giftreg, X-Fancycat, X-AOM
Reply With Quote
  #8  
Old 11-30-2008, 07:27 PM
 
northstar northstar is offline
 

Advanced Member
  
Join Date: Nov 2006
Posts: 33
 

Default 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-, 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!
__________________
Alisa
X-Cart 4.3
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 08:40 PM.

   

 
X-Cart forums © 2001-2020