OS Property support center

Images and html i extra fields

  • c8x
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
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

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

More
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

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

  • c8x
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
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

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

More
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

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

Moderators: Mr. DamNguyen Phu Quan