网络营销电子商务研究中心

网络营销电子商务研究中心 (https://www.0058.net/index.php)
-   X-Cart (https://www.0058.net/forumdisplay.php?f=70)
-   -   Static Pages Link Display (https://www.0058.net/showthread.php?t=4822)

Kaeden 2014-10-01 07:51 AM

Static Pages Link Display
 
Hello all,

I have a question with regards to the static pages feature which if any of you can offer advice I'd greatly appreciate it.

I want to add some tutorials on my site through the static page feature, but my problem is that anytime I add a new static page, it ends up being listed under the HELP section on my homepage www.loupesusa.com.

Is there a way I can stop the link from showing up on the customer storefront?

Thanks in advance for all advice and help.

Good luck!

Kanaranzi 2014-10-01 07:53 AM

skin/2-columns/customer/bottom.tlp


Inside that file look for this line:

Code:

{foreach from=$pages_menu item=p}
    {if $p.show_in_menu eq 'Y'}
    <li><a href="pages.php?pageid={$p.pageid}">{$p.title|amp}</a></li>  {/if}
    {/foreach}

Change it to:
Code:

{foreach from=$pages_menu item=p}
      {if $pages_menu[pg].orderby gt "900"}
        <li><a href="pages.php?pageid={$p.pageid}">{$p.title|amp}</a></li>
      {/if}
    {/foreach}

This will prevent the static pages showing up at homepage, but still showing up in the help section.

Karissa 2014-10-01 07:56 AM

any way not leting part pages not showing up in the help section also?

Kelsey 2014-10-01 08:21 AM

skin/common_files/customer/help/general.tpl

change
Code:

{foreach from=$pages_menu item=p name=pages}
      <li>{include file="customer/buttons/button.tpl" button_title=$p.title href="pages.php?pageid=`$p.pageid`" style="link"}</li>
{/foreach}

to

Code:

{foreach from=$pages_menu item=p name=pages}
{if $pages_menu[pg].orderby gt "60"}
      <li>{include file="customer/buttons/button.tpl" button_title=$p.title href="pages.php?pageid=`$p.pageid`" style="link"}</li>
    {/if}
{/foreach}



All times are GMT +8. The time now is 06:06 AM.

Powered by vBulletin Version 3.8.7
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.