help to better help you:
Please: add always Joomla / JEM version and details to your posts, so we can try to reproduce your issue!
Put any code to Custom Fields
Put any code to Custom Fields
11 months 3 weeks ago
Hi, Community.
I just think, it would be nice if we could put any code to Custom Fields, <img> or <button> with js function.
How is it possible to do?
I just think, it would be nice if we could put any code to Custom Fields, <img> or <button> with js function.
How is it possible to do?
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Re: Put any code to Custom Fields
11 months 3 weeks ago
I'm a frontend developer.
What if change a type of the field in MySQL?
What if change a type of the field in MySQL?
Please Log in or Create an account to join the conversation.
Re: Put any code to Custom Fields
11 months 3 weeks ago
The following user(s) said Thank You: turbogum
Please Log in or Create an account to join the conversation.
Re: Put any code to Custom Fields
11 months 2 weeks ago - 11 months 2 weeks ago
Thanks, it was helpful!
So, if you want to put some html-code to the Custom Fields you should add a parameter filter="JComponentHelper::filterText" to the field information in the file event(dot)xml
I also changed type of the field custom10 to varchar(200) in the table jem_events in MySQL.
So, if you want to put some html-code to the Custom Fields you should add a parameter filter="JComponentHelper::filterText" to the field information in the file event(dot)xml
Code:
/administrator/components/com_jem/models/forms/
Code:
<field name="custom10" type="text"
filter="JComponentHelper::filterText"
size="20"
readonly="false"
class="inputbox"
label="COM_JEM_EVENT_CUSTOM_FIELD10"
description="COM_JEM_EVENT_CUSTOM_FIELD10_DESC"
/>
Last edit: 11 months 2 weeks ago by turbogum.
Please Log in or Create an account to join the conversation.
Re: Put any code to Custom Fields
5 months 2 weeks ago
It would be nice if at least the first 3 custom fields had options without having to edit the event.xml. I copy the fieldset custom, save it to add again after updates.
It would be nice to have either check boxes or radio buttons to chose the type.
Default should have filter="safehtml"
It would be nice to have either check boxes or radio buttons to chose the type.
Default should have filter="safehtml"
Code:
<field name=[b]"custom1" type="textarea"[/b] size="20" readonly="false" [b]class="uk-textarea"[/b]... [b]filter="safehtml"[/b] />
<field name=[b]"custom2" type="text" [/b]size="20" readonly="false" [b]class="inputbox" [/b]... />
<field name=[b]"custom3" type="textarea" rows="5" cols="20"[/b] ... [b]class="uk-textarea" [/b]... [b]filter="safehtml" [/b]/>
<field name=[b]"custom4" type="editor"[/b] [b]class="inputbox"[/b] ... [b]filter="safehtml" hide="pagebreak,readmore"[/b] />
Please Log in or Create an account to join the conversation.
Time to create page: 0.550 seconds