OS Property support center

How can I have viewing preference on the property

  • brianpat pat
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
9 years 9 months ago #66265 by brianpat pat
Hi

On property listings page, I want to have links of map view on theme3 top of page. Currently it's showing as a link in the menu. How can I do it?

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

  • brianpat pat
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
9 years 9 months ago #66267 by brianpat pat
Replied by brianpat pat on topic How can I have viewing preference on the property
What I meant to say is that ON the property lists page just above filters, how can I have link for different views, such as Map view, grid view?

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

More
9 years 9 months ago #66269 by Mr. Dam
Hi Brian,
Each theme was designed for unique structure, we can't combine layouts of different themes. For example: Map view of Default theme with Theme3.
Thanks
Dam

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

  • brianpat pat
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
9 years 9 months ago #66270 by brianpat pat
Replied by brianpat pat on topic How can I have viewing preference on the property
Sorry, possibly I couldn't explain well. If you see theme3 and see the menu , there's a link search and under this there's submenu saying map search. I just want this link placed on listing page. I m not talking about layout from different themes but from same theme which does still exist with in theme3. I hope you understand what I want to achieve.

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

More
9 years 9 months ago #66339 by Mr. Dam
Hi,
To add the Google Map at the top of listing pages (theme3), you can modify:
components > com_osproperty > templates > theme3 > listing.html.tpl.php and result.html.tpl.php
find line
Code:
<div class="agent-properties property-list row-fluid">

and add this code above
Code:
<?php if(HelperOspropertyGoogleMap::loadMapInListing($rows)) { ?> <div id="map_canvas" style="position:relative; width: 100%; height: 300px"></div> <?php } ?>

Notice: But please remember that, if you put the Google map in the same page with Map search module of OSP Real Homes, it mays have the conflict.
Thanks
Dam
The following user(s) said Thank You: brianpat pat

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

  • brianpat pat
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
9 years 9 months ago #66364 by brianpat pat
Replied by brianpat pat on topic How can I have viewing preference on the property
Hi,

I tried this, but the page is broken. I don't want to display the map , but I just want to place the link of map search above the filter.

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

More
9 years 9 months ago #66377 by Mr. Dam
Hi Brian,
If you want to put the link of Map search layout above the Filter form, please put this code
Code:
<a href="<?php echo Jroute::_('index.php?option=com_osproperty&view=lsearch');?>">Map Search</a>
above the function
Code:
HelperOspropertyCommon::filterForm($lists);
in file listing.html.tpl.php of theme
Thanks
Dam

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

Moderators: Mr. DamNguyen Phu Quan