- Posts: 3
- Thank you received: 0
OS Property support center
default mode list invece di grid!
- Mirko
- Topic Author
- Offline
- New Member
Less
More
11 years 5 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
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.
- Mr. Dam
- Offline
- Administrator
Less
More
- Posts: 12555
- Thank you received: 1626
11 years 5 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
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
Support
Documentation
Information
Copyright © 2024 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.