Support Center » Knowledgebase » How to limit the number of items in Browse by Categories, Cities blocks?
 How to limit the number of items in Browse by Categories, Cities blocks?
Article To limit the number of items in Browse by Categories, Cities blocks you need to do the following:

1. Go to admin panel -> Templates -> Edit Templates > Classifieds engine > browse_by_city.tpl (for "Browse by City" block)

2. Find the following code in this template:
{foreach from = $browseItems item = browseItem name=browseItems}
{if $browseItem.count > 0 }


3. To this code: {if $browseItem.count > 0 }
you need to add the following:
&& $smarty.foreach.browseItems.iteration < 10
So that you should get the following:
{if $browseItem.count > 0 && $smarty.foreach.browseItems.iteration < 10}

In this example 10 - is a limit of items to display

You should do the same for Categories in "browse_by_category.tpl" template.


Article Details
Article ID: 38
Created On: 17 Nov 2009 4:18 AM

 This article was helpful  This article was not helpful

 Back
 Log in [Lost Password] 
E-mail:
Password:
Remember Me:
 
 Search
 Article Options
Home | Register | Submit a Ticket | Knowledgebase | Downloads
Language:

Help Desk Software by Kayako eSupport v3.60.04