× This is the optional category header for the Suggestion Box.

"Fields"-field in the module should accept HTML

  • Rumpel
  • Rumpel's Avatar Topic Author
  • Offline
  • New Member
  • New Member
1 year 4 days ago #820 by Rumpel
Rumpel created the topic: "Fields"-field in the module should accept HTML
By default, Joomla filters all HTML-tags from text input fields. To disable this behavior for a certain field, you can add the attribute
to the corresponding field in the module description XML-file.

Add the above mentioned attribute to the field with the label "MOD_SIMPLECALENDAR_FIELDS" in the module description XML (modules/mod_simplecalender/mod_simplecalender.xml).
This prevents the filtering of HTML code and allows to customize the output of the module to a much higher degree (inserting line-breaks, span/div with a specific class-attribute, etc.).
By adding this attribute to the default XML-file there is no need for editing the template files and updating the module/component would be much less risky.

My input (after adding the mentioned attribute to the XML) is:
<span class="date">{START_DATE}</span> <span class="stime">{START_TIME}</span> <span class="etime">{END_TIME}</span><br /><span class="title">{NAME}</span><span class="place">{VENUE}</span>
The individual elements are styled using CSS.

Other users seem to have similar problems (first part).

Further Suggestion:
If you fulfill the suggestion above, it could be necessary to change the type of the field from "text" to "textarea". The textfield is quite small

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

6 months 3 weeks ago #892 by admin
admin replied the topic: "Fields"-field in the module should accept HTML
Accepted and will be released with module version 3.1.1 soon.

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

Time to create page: 0.258 seconds
Powered by Kunena Forum