Live Help
Home
Features
Demo
Pricing
Order
Live Examples
Contact
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
User Comments
Add a Comment
If you would like to comment on this entry, please use the form below. Comments may be queued for moderation, and will not be published until approved.
Image verification required
Please enter the characters that appear to the right in the space provided. This is just to verify that you are a human.
Full Name:
E-mail Address: (optional)
Comment:
Back
Log in
[Lost Password]
E-mail:
Password:
Remember Me:
Search
-- Entire Support Site --
Knowledgebase
Downloads
Article Options
Add Comment
Print Article
PDF Version
E-mail Article
Add to Favorites
Home
|
Register
|
Submit a Ticket
|
Knowledgebase
|
Downloads
Language:
English (U.S.)
Help Desk Software
by Kayako eSupport v3.60.04