View Single Post
  #2  
Old 11-28-2008, 03:47 AM
  Yurij's Avatar 
Yurij Yurij is offline
Banned
 

X-Adept
  
Join Date: Jan 2008
Posts: 486
 

Default Re: controlling static page appearance

Quote:
Originally Posted by tbm
Hello,

Is it possible to have static pages appear in the help menu and one of the other menus?

Thanks,

tbm

You can use the solution snippet for the division into blocs.
block 1 (all static page with value 'order by' <=100)
PHP Code:
{section name=pg loop=$pages_menu}
{if 
$pages_menu[pg].orderby lte 100}
<
a href="pages.php?pageid={$pages_menu[pg].pageid}class="VertMenuItems">{$pages_menu[pg].title}</a><br />
{/if}
{/
section

block 2 (all static page with value 'order by' >100)
PHP Code:
{section name=pg loop=$pages_menu}
{if 
$pages_menu[pg].orderby gt 100}
<
a href="pages.php?pageid={$pages_menu[pg].pageid}class="VertMenuItems">{$pages_menu[pg].title}</a><br />
{/if}
{/
section
Reply With Quote