- Posts: 15
- Thank you received: 0
OS Property support center
Description before Locator Search
- Yiannis
- Topic Author
- Offline
- New Member
-
Less
More
10 years 2 weeks ago #62198
by Yiannis
Description before Locator Search was created by Yiannis
I have assigned in the main menu the Locator Search which include the map of the properties. I want to add a small description before the map. How is this possible?
Please Log in or Create an account to join the conversation.
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13056
- Thank you received: 1696
10 years 2 weeks ago #62203
by Mr. Dam
Replied by Mr. Dam on topic Description before Locator Search
Hi Yiannis,
You can add description in Locator Map layout in file: components > com_osproperty > classes > locator.html.php
function locatorSearchHtml
Thanks
Dam
You can add description in Locator Map layout in file: components > com_osproperty > classes > locator.html.php
function locatorSearchHtml
Thanks
Dam
Please Log in or Create an account to join the conversation.
- Yiannis
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 15
- Thank you received: 0
10 years 6 days ago #62670
by Yiannis
Replied by Yiannis on topic Description before Locator Search
Thanks for the replay. The problem is that the website is multilingual so how can i do that?
Please Log in or Create an account to join the conversation.
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13056
- Thank you received: 1696
10 years 6 days ago #62678
by Mr. Dam
Replied by Mr. Dam on topic Description before Locator Search
Hi Yiannis,
In that case, you need to add PHP code with language constant in above the Locator Map like this
<?php echo Jtext::_('OS_MAP_DESC');?>
And then, go to file: language > en-GB > en-GB.com_osproperty.ini and add
OS_MAP_DESC=""
at the bottom
After that, please go to Back-end > OS Property > Translation tool and filter "OS_MAP_DESC" and translate it in different language
Thanks
Dam
In that case, you need to add PHP code with language constant in above the Locator Map like this
<?php echo Jtext::_('OS_MAP_DESC');?>
And then, go to file: language > en-GB > en-GB.com_osproperty.ini and add
OS_MAP_DESC=""
at the bottom
After that, please go to Back-end > OS Property > Translation tool and filter "OS_MAP_DESC" and translate it in different language
Thanks
Dam
Please Log in or Create an account to join the conversation.
- Yiannis
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 15
- Thank you received: 0
10 years 5 days ago #62731
by Yiannis
Replied by Yiannis on topic Description before Locator Search
Can you please be more specific about where to place the code in locator.html.php?
Please Log in or Create an account to join the conversation.
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13056
- Thank you received: 1696
10 years 4 days ago #62795
by Mr. Dam
Replied by Mr. Dam on topic Description before Locator Search
Hi,
You can add the extra code bellow this line
<?php
OSPHelper::generateHeading(2, JText::_('OS_SEARCH_LOCATOR'));
?>
of file locator.html.php
Thanks
Dam
You can add the extra code bellow this line
<?php
OSPHelper::generateHeading(2, JText::_('OS_SEARCH_LOCATOR'));
?>
of file locator.html.php
Thanks
Dam
Please Log in or Create an account to join the conversation.
- Yiannis
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 15
- Thank you received: 0
10 years 4 days ago #62802
by Yiannis
Replied by Yiannis on topic Description before Locator Search
thank you very much for the reply but when am doing that then when go to the site and load the map am taking a completely white screen.
Please Log in or Create an account to join the conversation.
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13056
- Thank you received: 1696
10 years 4 days ago #62811
by Mr. Dam
Replied by Mr. Dam on topic Description before Locator Search
Hi,
If you backup the original locator.html.php file, pease create one folder and paste the backup file into it. Do not put the original backup file in the same "classes" folder
Thanks
Dam
If you backup the original locator.html.php file, pease create one folder and paste the backup file into it. Do not put the original backup file in the same "classes" folder
Thanks
Dam
Please Log in or Create an account to join the conversation.
- Yiannis
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 15
- Thank you received: 0
9 years 11 months ago #63182
by Yiannis
Replied by Yiannis on topic Description before Locator Search
It worked fine thanks. Although perhaps it would be better if i could place there a single article. But its ok. Thanks again.
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 11 months ago #63197
by Mr. Dam
Replied by Mr. Dam on topic Description before Locator Search
Hi Yiannis,
OS Property has a lot of layouts, so we can't make the Content plugin for them all. I think this way is quite flexible, and you can add HTML code easily in Locator layout directly.
Thanks
Dam
OS Property has a lot of layouts, so we can't make the Content plugin for them all. I think this way is quite flexible, and you can add HTML code easily in Locator layout directly.
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.