View Single Post
  #1  
Old 09-26-2007, 05:53 AM
 
wiggywag wiggywag is offline
 

Member
  
Join Date: Apr 2005
Posts: 13
 

Default how to show a limitet number of links in a menu?

Hi!

I made a menu showing links to static pages, but I don't want to show all of them only the five last. How do I go about it? Here is my code for that module:

******************************
{* $Id: pages_menu.tpl,v 1.5 2005/11/17 06:55:36 max Exp $ *}
{section name=pg loop=$pages_menu}
{if $pages_menu[pg].pageid ne "6" and $pages_menu[pg].pageid ne "10" and $pages_menu[pg].pageid ne "7"}
<div style="padding-bottom: 2px">{* WebsiteCM CDSEO - START *}<A href="{$http_location}/{$cdseo_pages}/{$pages_menu[pg].filename}" class="VertMenuItems" title="{$pages_menu[pg].title}">{* WebsiteCM CDSEO - END *}{$pages_menu[pg].title|truncate:28:"...":true}</a></div>{/if}
{/section}
******************************

You can see the menu "Artikler" at right:
http://www.caffeclub.no/p/home.php
__________________
wiggywag
X-Cart 4.1.8
Reply With Quote