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

Help Box: Removing Links to Some Static Pages

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 06-29-2006, 09:05 AM
 
MCM MCM is offline
 

Senior Member
  
Join Date: Dec 2005
Posts: 114
 

Default Help Box: Removing Links to Some Static Pages

Hi,

The Help template is set to have the Contact, Privacy, and Terms pages, as well as links to the static pages. However, Most of my static pages are linked from a new box that I created, and I'd prefer that they not be in both places (so as not to greatly clutter the help box).

Is there a way to turn off some of the static pages that go in the help box without turning them all off? Disabling each static page did that, but then the page can't be called from the other place, either.

Thanks,

Jeremy
__________________
Version 4.0.17/4.0.18
Reply With Quote
  #2  
Old 06-29-2006, 10:14 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

Not by default, no. You could use Smarty to set it to only display certain links, but it would be easier just to hard-code it.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 06-29-2006, 11:43 AM
  SamD's Avatar 
SamD SamD is offline
 

Advanced Member
  
Join Date: Mar 2006
Location: New York
Posts: 38
 

Default

Hello!

I had that problem also. What I did is hide all static pages that have an orderby number > than 900. I also bolded all static pages that have orderby < 9.

Here's the code from pages_menu.tpl

Code:
{section name=pg loop=$pages_menu} {if $pages_menu[pg].orderby > 900} {* Hidden page link *} {elseif $pages_menu[pg].orderby < 9} {* Bolded page link *} {$pages_menu[pg].title} {else} {* Regular page link *} {$pages_menu[pg].title} {/if} {/section}

This is great because you can do everything from the backend, and it's easy to implement!

I also have a very similar thing for my subcategories.
__________________
Version 4.1.8
(Upgraded from 4.0.1
Reply With Quote
  #4  
Old 07-07-2006, 07:18 PM
 
lannyg lannyg is offline
 

Member
  
Join Date: Jun 2006
Posts: 23
 

Default Excluding a page from Help menu

I've added a static page that I want to exclude from the help menu on the side. Is that change inside the pages_menu.tpl? Any help on how to modify it?

I tried changing the POS to 999 and using this mod, but maybe I misunderstood.

Thank you
__________________
Version 4.0.18 [unix]
Reply With Quote
  #5  
Old 07-08-2006, 07:41 PM
 
robf robf is offline
 

Advanced Member
  
Join Date: May 2006
Posts: 61
 

Default

This should do what your looking for.

http://forum.x-cart.com/viewtopic.php?t=30355
__________________
x-cart 4.1.6
PHP 4.4.2
MySQL server 4.0.26-log
MySQL client 5.0.20
Operation system FreeBSD
Perl 5.008008
Reply With Quote
  #6  
Old 07-09-2006, 07:10 AM
 
lannyg lannyg is offline
 

Member
  
Join Date: Jun 2006
Posts: 23
 

Default static page placement

Thank you. That is what I was looking for. I'm not sure why I didn't find it when I was searching, but I'm glad you know about it
__________________
Version 4.0.18 [unix]
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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 10:08 AM.

   

 
X-Cart forums © 2001-2020