?
avatar andreas-isele
andreas-isele
2 Feb 2018

Steps to reproduce the issue

You have an XML file of a component using paramater e.g in
components\com_fileuploader\views\fileuploader\tmpl\default.xml:

when you load your model and you want to get the parameters from the XML doing:

$app = JFactory::getApplication('site');
$params = $app->getParams('com_fileuploader');
$rubrik = $params->get('rubrik'); // => Retruns null

Expected result

$rubrik has the parameter specified in the XML of the component

Actual result

$rubrik is empty

System information (as much as possible)

Additional comments

avatar andreas-isele andreas-isele - open - 2 Feb 2018
avatar joomla-cms-bot joomla-cms-bot - labeled - 2 Feb 2018
avatar andreas-isele andreas-isele - change - 2 Feb 2018
The description was changed
avatar andreas-isele andreas-isele - edited - 2 Feb 2018
avatar franz-wohlkoenig franz-wohlkoenig - change - 2 Feb 2018
Priority Critical Medium
avatar ggppdk
ggppdk - comment - 2 Feb 2018

The file
components/com_fileuploader/views/fileuploader/tmpl/default.xml
are parameters of a menu item
they are not parameters of the component

Parameters of componet are
administrator/components/com_fileuploader/config.xml

You can ask more in forums, https://forum.joomla.org

avatar Bakual
Bakual - comment - 2 Feb 2018

I can't reproduce it with com_content. So it is either something with your extension or a misunderstanding (as @ggppdk indicated).

I'm closing this as non-core issue. If you can reproduce it in core, feel free to reopen.

avatar Bakual Bakual - close - 2 Feb 2018
avatar Bakual Bakual - change - 2 Feb 2018
Status New Closed
Closed_Date 0000-00-00 00:00:00 2018-02-02 17:47:36
Closed_By Bakual
avatar ggppdk
ggppdk - comment - 2 Feb 2018

@andreas-isele

Probably you have some parameters with
-- same name in component configuration and in menu item configuration

and the above has caused some confusion
if the parameters name are the same then yes
... you will not get a parameter value ...

Add a Comment

Login with GitHub to post a comment