X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Help Box: Removing Links to Some Static Pages (https://forum.x-cart.com/showthread.php?t=22885)

MCM 06-29-2006 09:05 AM

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

balinor 06-29-2006 10:14 AM

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.

SamD 06-29-2006 11:43 AM

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.

lannyg 07-07-2006 07:18 PM

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

robf 07-08-2006 07:41 PM

This should do what your looking for.

http://forum.x-cart.com/viewtopic.php?t=30355

lannyg 07-09-2006 07:10 AM

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 :)


All times are GMT -8. The time now is 05:46 PM.

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