MyComponent
MyComponent copied to clipboard
Unexpected Menu record properties, invalid namespace / action controller
I'm not sure if this is an issue with MODX 2.3 compatibility, if something is perhaps hard-coded preventing setting the action
& namespace
properties of the menu record in the transport file, or simply user error. I will document this here in case it is a valid bug.
In my component's *.config.php file, I have configured a single menu record:
'menus' => array(
'justatest' => array(
'text' => 'justatest',
'parent' => 'components',
'description' => 'justatest.ex_menu_desc',
'icon' => '',
'menuindex' => 0,
'params' => '',
'handler' => '',
'permissions' => 'edit_document',
'action' => array(
'id' => '',
'namespace' => 'justatest', // This shows up as 'core' after transport file install
'controller' => 'home', // This did not appear to work either
'haslayout' => true,
'lang_topics' => 'justatest:default',
'assets' => '',
),
),
),
My goal is this:
But what I keep getting is this:
Am I perhaps doing something incorrect in my menus
configuration array above?