View Single Post
  #8  
Old 12-11-2008, 01:05 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
Ok, that worked! it created 2 new menu blocks and put the correct menu items in each!

now, if i want to add certain static pages to the manufacturers menu and other static pages to the help can i do this using the same idea?

for example, if i wanted to add the < 100 static menu items to the help menu, could i do this:

PHP Code:
{* $Idhelp.tpl,v 1.20 2005/11/17 06:55:36 max Exp $ *}
{
capture name=menu}
<
a href="help.php?section=contactus&amp;mode=update" class="VertMenuItems">{$lng.lbl_contact_us}</a><br />
<
a href="help.php?section=business" class="VertMenuItems">{$lng.lbl_privacy_statement}</a><br />
<
a href="help.php?section=conditions" class="VertMenuItems">{$lng.lbl_terms_n_conditions}</a><br />

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

{/
capture}
{ include 
file="menu.tpl" dingbats="dingbats_help.gif" menu_title=$lng.lbl_help menu_content=$smarty.capture.menu link_href="help.php"


Yes, you can (Use composite conditions), example for "120 >= orderby > 100":

PHP Code:
{section name=pg loop=$pages_menu}
        {if 
$pages_menu[pg].orderby gt 100 and $pages_menu[pg].orderby lte 120}
            <
a href="pages.php?pageid={$pages_menu[pg].pageid}class="VertMenuItems">{$pages_menu[pg].title}</a><br />
        {/if}
{/
section
Reply With Quote