OS Property support center
default mode list invece di grid!
Mirko
Topic Author
Offline
New Member
Less
More
Posts: 3
Thank you received: 0
13 years 11 months ago #21480
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.
Less
More
Posts: 13801
Thank you received: 1816
13 years 11 months ago #21523
by Mr. Dam
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