- Posts: 25
- Thank you received: 0
OS Property support center
Images and html i extra fields
- c8x
- Topic Author
- Offline
- Junior Member
-
Less
More
10 years 3 months ago #56558
by c8x
Images and html i extra fields was created by c8x
Hi,
first thanx for this great component OS Property:)
I have one question:
I really need the possibility of use of html <img src=""> (and other HTML tags) and some special characters like > < " in the extra fields ---> field options
at the moment the component is cleaning entities & code.
example: if I create new field option called: > than "gold"
after saving you get : than gold (> and "" get lost)
Thanx
first thanx for this great component OS Property:)
I have one question:
I really need the possibility of use of html <img src=""> (and other HTML tags) and some special characters like > < " in the extra fields ---> field options
at the moment the component is cleaning entities & code.
example: if I create new field option called: > than "gold"
after saving you get : than gold (> and "" get lost)
Thanx
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 3 months ago #56568
by Mr. Dam
Replied by Mr. Dam on topic Images and html i extra fields
Hi,
Unfortunately, OS Property doesn't accept the special characters in the input fields because some bellow reasons
1. Those options will be shown in attribute "option" of the <Tags> at Advanced search or Add/edit properties. And if those options contain special chars, it may have the potential issues
2. It isn't secure if we allow to put the HTML code into field options
Hope you understand
Thanks
Dam
Unfortunately, OS Property doesn't accept the special characters in the input fields because some bellow reasons
1. Those options will be shown in attribute "option" of the <Tags> at Advanced search or Add/edit properties. And if those options contain special chars, it may have the potential issues
2. It isn't secure if we allow to put the HTML code into field options
Hope you understand
Thanks
Dam
Please Log in or Create an account to join the conversation.
- c8x
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 25
- Thank you received: 0
10 years 3 months ago #56588
by c8x
Replied by c8x on topic Images and html i extra fields
Thanx for quick reply.
Ok, I understand. But I really need this option , just for some fields that will not appear in the search.
Even extra field type "Text" strips the tags. Is not possible to change it?
Or maybe another way: how can I get one by one (f.ex. by field name or ID) the extra fields and its values into list & details template?
thanx
Ok, I understand. But I really need this option , just for some fields that will not appear in the search.
Even extra field type "Text" strips the tags. Is not possible to change it?
Or maybe another way: how can I get one by one (f.ex. by field name or ID) the extra fields and its values into list & details template?
thanx
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 3 months ago #56592
by Mr. Dam
Replied by Mr. Dam on topic Images and html i extra fields
Hi,
I think both of your ideas are difficult to implement. In this case, i can't help you because it is too difficult. If you have knowledge about Joomla PHP, you can make the modification on extra fields saving.
The source code is in: administrator > components > com_osproperty > classes > extrafield.php
1/ Save extra field data
function save
2/ Save field option
function savefieldoption
Good luck
Dam
I think both of your ideas are difficult to implement. In this case, i can't help you because it is too difficult. If you have knowledge about Joomla PHP, you can make the modification on extra fields saving.
The source code is in: administrator > components > com_osproperty > classes > extrafield.php
1/ Save extra field data
function save
2/ Save field option
function savefieldoption
Good luck
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.