Need help with Joomla? We are available for hire to help with Joomla customization, upgrades, maintenance, and custom development.
Explore our services
OS Property support center

default mode list invece di grid!

More
13 years 11 months ago #21480 by Mirko
default mode list invece di grid! was created by Mirko
Hi.

Help me!!!

I want to change the view properties from grid to list. I prefer that my clients, when they look at the list of properties, can see, the default mode list. How can I change the code?

Thanks a lot!

my website: www.living-re.it

Please Log in or Create an account to join the conversation.

More
13 years 11 months ago #21523 by Mr. Dam
Replied by Mr. Dam on topic Re: default mode list invece di grid!
Hi,
We can change the default layout to list view by do following tasks:
Open file
components > com_osproperty > classes > listing.html.tpl.php
find this code
if($view_type_cookie == 1){
$body = $tpl->fetch("listing.html.tpl.php");
}elseif($view_type_cookie == 2){
$body = $tpl->fetch("map.html.tpl.php");
}else{
$body = $tpl->fetch("grid.html.tpl.php");
}
and change to
if($view_type_cookie == 3){
$body = $tpl->fetch("grid.html.tpl.php");
}elseif($view_type_cookie == 2){
$body = $tpl->fetch("map.html.tpl.php");
}else{
$body = $tpl->fetch("listing.html.tpl.php");
}

Good luck
Dam

Please Log in or Create an account to join the conversation.

Moderators: Mr. Dam, Nguyen Phu Quan