I crete a new plugin, the plugin work but the build of menu fail.
In the transport.menu.php create this url:
/a4vdbm/?a=11&namespace=filesmanager
but the correct url is:
/a4vdbm/?a=index&namespace=filesmanager
My transport.menu.php is:
<?php
$action = $modx->newObject('modAction');
$action->fromArray(array(
'id' => 1,
'namespace' => 'filesmanager',
'parent' => 0,
'controller' => 'index',
'haslayout' => true,
'lang_topics' => 'filesmanager:default',
'assets' => '',
), '', true, true);
$menu = $modx->newObject('modMenu');
$menu->fromArray(array(
'text' => 'filesmanager',
'parent' => 'components',
'action' => 'index',
'description' => 'filesmanager.filesmanager_desc',
'icon' => 'images/icons/plugin.gif',
'menuindex' => 0,
'params' => '',
'handler' => '',
'namespace' => 'filesmanager',
), '', true, true);
$menu->addOne($action);
return $menu;
Maybe this is the problem:
https://github.com/modxcms/revolution/issues/12867