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

SOLVED!!! Change search result view from grid- to

  • Julian Gapp
  • Topic Author
  • Offline
  • New Member
  • New Member
More
13 years 9 months ago - 13 years 9 months ago #23534 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
Last edit: 13 years 9 months ago by Mr. Dam.

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

More
13 years 9 months ago #23538 by Mr. Dam
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 ==3){
$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
  • New Member
More
13 years 9 months ago #23554 by Julian Gapp
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