- Posts: 10
- Thank you received: 0
OS Property support center
SOLVED!!! Change search result view from grid- to
- Julian Gapp
- Topic Author
- Offline
- New Member
-
Less
More
12 years 3 months ago - 12 years 3 months ago #23534
by Julian Gapp
SOLVED!!! Change search result view from grid- to was created by Julian Gapp
If I search via the advanced search layout, the results are published in the grid-view layout. I know that I can change this view then, by clicking on the "list-view" button, but I want the search results always published in the "List-View" Layout.
How can I change this?
Thanks for your help
How can I change this?
Thanks for your help
Last edit: 12 years 3 months ago by Mr. Dam.
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 3 months ago #23538
by Mr. Dam
Replied by Mr. Dam on topic Re: Change search result view from grid- to list-view
Hi Julian
Please open file
components > com_osproperty > classes > listing.html.php
find
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");
}
and change to
if($view_type_cookie =
){
$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("resultshtml.tpl.php");
}
Thanks
Dam
Please open file
components > com_osproperty > classes > listing.html.php
find
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");
}
and change to
if($view_type_cookie =

$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("resultshtml.tpl.php");
}
Thanks
Dam
The following user(s) said Thank You: Julian Gapp
Please Log in or Create an account to join the conversation.
- Julian Gapp
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 10
- Thank you received: 0
12 years 3 months ago #23554
by Julian Gapp
Replied by Julian Gapp on topic Re: Change search result view from grid- to list-view
Great - exactly what I was looking for. Thank you 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.