- Posts: 448
- Thank you received: 2
OS Property support center
Template question
- sti
- Topic Author
- Offline
- Platinum Member
-
Less
More
12 years 8 months ago #17604
by sti
Template question was created by sti
1. how to make default listing view. its loading as grid as default.
2. the demo map is not good.
osproperty.ext4joomla.com/index.php/list...es/home-construction
2. the demo map is not good.
osproperty.ext4joomla.com/index.php/list...es/home-construction
Please Log in or Create an account to join the conversation.
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13020
- Thank you received: 1688
12 years 8 months ago #17615
by Mr. Dam
Replied by Mr. Dam on topic Re: Template question
Find this source code in listing.html.php
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 == 0){
$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");
}
And
if($view_type_cookie == 1){
$body = $tpl->fetch("results.html.tpl.php");
}elseif($view_type_cookie == 2){
$body = $tpl->fetch("results.map.html.tpl.php");
}else{
$body = $tpl->fetch("results.grid.html.tpl.php");
}
change to
if($view_type_cookie == 0){
$body = $tpl->fetch("results.grid.html.tpl.php");
}elseif($view_type_cookie == 2){
$body = $tpl->fetch("results.map.html.tpl.php");
}else{
$body = $tpl->fetch("results.html.tpl.php");
}
If you don't want to show the map view icon, you can remove it in the listing.html.tpl.php, grid.html.tpl.php
Thanks
Dam
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 == 0){
$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");
}
And
if($view_type_cookie == 1){
$body = $tpl->fetch("results.html.tpl.php");
}elseif($view_type_cookie == 2){
$body = $tpl->fetch("results.map.html.tpl.php");
}else{
$body = $tpl->fetch("results.grid.html.tpl.php");
}
change to
if($view_type_cookie == 0){
$body = $tpl->fetch("results.grid.html.tpl.php");
}elseif($view_type_cookie == 2){
$body = $tpl->fetch("results.map.html.tpl.php");
}else{
$body = $tpl->fetch("results.html.tpl.php");
}
If you don't want to show the map view icon, you can remove it in the listing.html.tpl.php, grid.html.tpl.php
Thanks
Dam
Please Log in or Create an account to join the conversation.
Moderators: Mr. Dam, Nguyen Phu Quan
Support
Documentation
Information
Copyright © 2025 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.