- Posts: 87
- Thank you received: 0
OS Property support center
How can I have viewing preference on the property
- brianpat pat
- Topic Author
- Offline
- Premium Member
-
Less
More
9 years 9 months ago #66265
by brianpat pat
How can I have viewing preference on the property was created 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?
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
-
Less
More
- Posts: 87
- Thank you received: 0
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.
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13056
- Thank you received: 1696
9 years 9 months ago #66269
by Mr. Dam
Replied by Mr. Dam on topic How can I have viewing preference on the property
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
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
-
Less
More
- Posts: 87
- Thank you received: 0
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.
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13056
- Thank you received: 1696
9 years 9 months ago #66339
by Mr. Dam
Replied by Mr. Dam on topic How can I have viewing preference on the property
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
and add this code above
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
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
-
Less
More
- Posts: 87
- Thank you received: 0
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.
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.
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13056
- Thank you received: 1696
9 years 9 months ago #66377
by Mr. Dam
Replied by Mr. Dam on topic How can I have viewing preference on the property
Hi Brian,
If you want to put the link of Map search layout above the Filter form, please put this code
above the function
in file listing.html.tpl.php of theme
Thanks
Dam
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>
Code:
HelperOspropertyCommon::filterForm($lists);
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.