View Single Post
  #3  
Old 06-27-2008, 12:43 AM
  Yurij's Avatar 
Yurij Yurij is offline
Banned
 

X-Adept
  
Join Date: Jan 2008
Posts: 486
 

Default Re: How to Create Two Embedded / Static Page Sections

Quote:
Originally Posted by crazyoval
Hi guys, hope you are all well.

Am wondering if anyone knows how to add a second embedded / static page list? I want to use two distinct sections, one for help topics and one other for markets (i.e. a page for each of the niches I market to so I can create keyword rich landing pages that sit just below the top page).

Any ideas guys?

Is there a mod somewhere for this?

Many thanks

Guy


For the first page of the block used with the value of field "orderby" less than 300, for the second - more.



PHP Code:
{capture name=menu}
    {
section name=pg loop=$pages_menu}
        {if 
$pages_menu[pg].orderby lt 300}
            <
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="First Block" menu_content=$smarty.capture.menu 


PHP Code:
{capture name=menu}
    {
section name=pg loop=$pages_menu}
        {if 
$pages_menu[pg].orderby gt 299}
            <
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="Second Block" menu_content=$smarty.capture.menu 
Reply With Quote