<field name="textparam" type="text" default="" label="some text" description="" />
<field name="subformparam" type="subform" formsource="[path to mysubform.xml]" multiple="true" label="some fields" description=""/>
<field name="subformtext1" type="text" default="" label="sub form text 1" description="" />
<field name="subformtext2" type="text" default="" label="sub form text 2" description="" />
For that same component setup a view that included the same fields as config.xml created on step 1: [tmpl name].xml for that view's layout.
Set component params - do enter some values both on the text and on the subform
Create a menu entry for that same view and save it leaving both text and the subform fields empty (no entries on the subform at all)
Check the view params via code with print_r(Factory::getApplication()->getParams()).
Both "textparam" and "subformparam" should show the component settings, as the settings for the menu are empty.
"textparam" does show the value set for the component settings
"subformparam" shows an empty array
Joomla 4.3.2
Labels |
Added:
No Code Attached Yet
|
Labels |
Added:
Feature
|