Happy Sunday,
You are lucky I am working every day for this summer sprint.
All you have to do is to add the 'extension' parameter in JDom
'extension' => 'com_mycomponent'
But you must be sure that this component is loaded before, because JDom will NOT load it for you.
But as I saw, it was not working, so you need to add 2 line in JDom to make it working:
FROM LINE 423:
public function getExtension()
{
// ADD THIS
if ($extension = $this->getOption('extension'))
return $extension;
//END
$dom = JDom::getInstance();
if ($extension = $dom->get('extension'))
return $extension;
$jinput = new JInput;
$extension = $jinput->get('option', null, 'CMD');
if ($extension)
$dom->set('extension', $extension);
return $extension;
}
I will fix it for the next JDom version. Thank you for this hint.
Because at the moment is was working only for modules, but once it has been loaded from a component, the extension parameter was not read afterwards.
Now with this fix, the parameter overload the static value, and will not interfer with other calls.
Hope it helps you.