Skip to content

Unexpected Menu record properties, invalid namespace / action controller #26

@pixelchutes

Description

@pixelchutes

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:

goal

But what I keep getting is this:

actual

Am I perhaps doing something incorrect in my menus configuration array above?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions