4

I have created a custom module in Joomla 3.5; I have a set of fields, but surprisingly, a default editor is inserted into the module basic tab, while I have not such fields in my fields XML:

<config>
        <fields name="params">
            <fieldset name="basic">

                <field name="title" label="Title" type="text" />
                <field name="subtitle" label="Subtitle" type="text" />
                <field name="title-class" label="Title CSS Class" type="text" />
                <field name="subtitle-class" label="Subtitle CSS Class" type="text" />
</fieldset>
        </fields>
    </config>

Does anyone know what's the issue and how can I remove this textarea?

  • So one of those 4 fields has the default editor? I would start by commenting out parts of the xml file. Take off all fields and see how it looks, then start re-inserting the fields in the xml, one by one... – FFrewin Apr 23 '16 at 12:27
  • I've created a module and copied your code into the config section - the problem is not replicated for me. Are the other fields appearing alongside the editor? What label is the editor given? It may be worth expanding your question to show the full xml file and a screengrab of the output. – Richard B Apr 23 '16 at 14:47
4

Please check if your custom module XML file contains the following line:

<customContent />

This line is present in the default Joomla Custom HTML module, and inserts an editor field in the main tab of your module, even when it's not located inside the <config> tag.

  • Hey man this was the solution. Thanks very much – Mostafa Talebi Apr 24 '16 at 8:48
  • great catch johanpw – FFrewin Apr 24 '16 at 9:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.