I was interested to see the answer to this question which mentions the <customContent />
tag.
I'd never come across this before, and I'm struggling to find much information on it.
- It does not appear to be mentioned on Joomla's module tutorials
- A search of core files shows it only to be used by mod_custom
How it seems to work is that you place it inside the <extension>
tag of a module, but not within any other section such as <config>
. It then creates a WYSIWYG editor above all other parameters of the module. It has no label.
However, unlike <field type="editor">
, this saves the data into its own content
field of the _modules table, as opposed to in the JSON string of params
.
The fact it has its own field suggests to me that this might be the best practise way to add an editor to a module, but it seems odd that it's so rarely mentioned.
Do Joomla intend you to use this tag? Is it best practise?