?
avatar n9iels
n9iels
8 Aug 2016

Steps to reproduce the issue

  1. Go to mod_custom xml file (or another module, but we use mod_custom in this example), and add the following field to the parameters:
<fieldset name="test">
    <field
        name="field-name"
        type="subform"
        formsource="modules/mod_custom/example.xml"
        multiple="true"
        label="Subform Field"
        description="Subform Field Description" />
</fieldset>
  1. Create the a file named example.xml in the folder modules/mod_custom, place this as content of that file:
<?xml version="1.0" encoding="UTF-8"?>
<form>
    <fieldset name="section1" label="Section1">
        <field name="example_text" type="text" label="Example Text" />
        <field name="example_textarea" type="textarea" label="Example Textarea" cols="40" rows="8" />
    </fieldset>
    <fieldset name="section2" label="Section2">
        <field name="example_list" type="list" default="1" class="advancedSelect" label="Example List">
            <option value="1">JYES</option>
            <option value="0">JNO</option>
        </field>
    </fieldset>
</form>
  1. Create a new custom HTML module and go the tab "COM_MODULES_TEST_FIELDSET_LABEL". Click on the green plus button to add a new row to the custom fields. Notice it is impossible to add more than one field
  2. Go back to the mod_custom xml file and change the parameter to:
<fieldset name="test">
    <field
        name="field-name"
        type="subform"
        formsource="modules/mod_custom/example.xml"
        multiple="true"
        min="0"
        max="5"
        label="Subform Field"
        description="Subform Field Description" />
</fieldset>
  1. Go back to the Custom HTML module and notice now you can make up to 5 new rows for the subform field #### Expected result When there is no min or max value given, it seems logic that the numbers of rows that can be generated are infinite

Actual result

You can only make up to one new row for the subform field

System information (as much as possible)

Joomla! 3.6.2

avatar n9iels n9iels - open - 8 Aug 2016
avatar n9iels n9iels - change - 8 Aug 2016
Status Closed New
Closed_Date 2016-08-08 18:48:03
avatar toniedw
toniedw - comment - 8 Aug 2016

Does this solve your issue?

#11158

avatar n9iels n9iels - close - 8 Aug 2016
avatar n9iels
n9iels - comment - 8 Aug 2016

@toniedw yes that fixes my problem. I'm sorry for asking, forget to look for existing PR's.
Thanks :)

avatar olejenya
olejenya - comment - 25 Aug 2016

hi , And what is the code to register the template in order to reach the parameters?


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/11519.

avatar olejenya
olejenya - comment - 26 Aug 2016

Normal field type, it worked, but when I add the field type type = "modal_article", then the creation of a new slide, this type does not work. How to update the script that would work korektno dynamic types?


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/11519.

Add a Comment

Login with GitHub to post a comment