Quote:
Originally Posted by tbm
Hi Yuri,
I added this code to the pages_menu.tpl, see bellow:
Code:
{* $Id: pages_menu.tpl,v 1.5 2005/11/17 06:55:36 max Exp $ *}
{*{section name=pg loop=$pages_menu}
<a href="pages.php?pageid={$pages_menu[pg].pageid}" class="VertMenuItems">{$pages_menu[pg].title}</a><br />
{/section}*}
{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}
{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}
does that look right? it doesn't seem to be working. do i not need to refer to the menu modules that i need the static pages to appear in?
|
Ok...
try added next code to the "help.tpl" (used it just for examples):
PHP Code:
{* $Id: help.tpl,v 1.20 2005/11/17 06:55:36 max Exp $ *}
{capture name=menu}
<a href="help.php?section=contactus&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 />
{*
{include file="pages_menu.tpl"}
*}
{/capture}
{ include file="menu.tpl" dingbats="dingbats_help.gif" menu_title=$lng.lbl_help menu_content=$smarty.capture.menu link_href="help.php"}
<br />
{capture name=menu}
{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" menu_title="Block 1" menu_content=$smarty.capture.menu}
<br />
{capture name=menu}
{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}
{/capture}
{include file="menu.tpl" menu_title="Block 2" menu_content=$smarty.capture.menu}
PS. And add a some pages with the "order by" more than 100.
PS2. If there are more questions, ask me
