Static Pages Link Display

How to stop part of static pages showing at homepage, help section, or both?

1. Not show at homepage only
Open file bottom.tpl, which is under fold of skin/2-columns/customer/, and change the following code:

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

to:

 <ul>
   {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}
</ul>