OS Property support center

Template question

  • sti
  • Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
11 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

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

More
11 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

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

Moderators: Mr. DamNguyen Phu Quan