View Full Version : Content name

Pen Phirun
October 27, 2012, 09:03 AM
Dear, Sir

Hello, Could you tell me.What's content name of sort listings ?

Pen Phirun


October 29, 2012, 05:15 AM
Hi Pen,

It's blocks/grid.tpl but you should have correct $listings array to print listings in the box,. or you can try something like

{include file="blocks'|cat:$smarty.const.RL_DS|cat:'grid.tpl' listings=$your_custom_listings}

But anyway array with listings should be correct.

Pen Phirun
October 29, 2012, 01:58 PM
hello Mike F.
i try try but can not, i don't understand code $your_custom_listings.
now i want to show category mobile phone, how can i write code ?

October 30, 2012, 05:42 AM
Hi, sorry i understood you wrong. To display category and keep it dynamic better to apply customization from this post:


It will be like listing field which displays category and subcategory of listing.

October 30, 2012, 05:51 AM
Forgot to say that you have to add the category field then to the short form of listings and it will be added to the sorting as well.

Or if you don't want to customize it in code you have to look into includes/controllers/listing_type.inc.php to add items to the sorting array


templates/template/blocks/grid_navbar.tpl to change how it looks

Pen Phirun
October 30, 2012, 01:10 PM
Dear Mike F.

Thank for your help me, sorry that bother you but please help me, i want to create new menu (example: menu cameras) and than when i click on this menu cameras, it will appear listing cameras and sort list post. please see my picture below.
Pen Phirun

October 31, 2012, 05:46 AM
There is simple trick which allows to create menu item and it will open category page.

Menu item is page so we have to create page, but there are many checking things which will not allow to create what we want through admin panel.

2 steps to create menu item with link to category page.

1. open website database through phpmyadmin, find table pages
Or even easier open database manager in admin panel

Prepare sql query and run it

INSERT INTO `{sql_prefix}pages`
( `Page_type` , `Key` , `Position` , `Path` , `Menus` , `Status` )
VALUES ('static', 'cameras_menu', '0', 'listings/cameras', '1,3,5,7', 'active');

let's investigate this

VALUES ('static',

'cameras_menu', -- key of page (just something logical) it's not important
'0', -- position of page in menu - you can set it later through AP>Pages
'listings/cameras', -- !correct path to category

'3,5,7', -- menus you want add this to: 5 - main menu, 6 - user menu. 7 - footer menu


2. the page doesn't have name so we have to add name for the item menu

go to AP>>Languages and add phrase with key pages+name+cameras_menu - where cameras_menu is key of added page

and value you want, in our case it's 'Cameras'

Pen Phirun
November 1, 2012, 09:24 AM
Dear Mike F,
thank Mike, but when click cameras menu, why button down of menu show on listings menu ?
please see my picture:
Pen Phirun