Remove left menu in admin within a new module

Author Message

Paul Etienney

Tuesday 24 August 2010 7:07:08 am

Hello everybody,

I have created a dashboard module to display in the admin interface.

I would like to remove the left menu if the user uses this module. Where is this setting ? in menu.ini ? I did not find my way.

Thank you very much. Have a nice day.

-- Good websites creation --
My site : http://www.pauletienney.com
Twitter : http://www.twitter.com/p_etienney

André R.

Wednesday 25 August 2010 1:51:16 am

In your view code do something like:

$Result = array();
$Result['content'] = $tpl->fetch( 'design:my_module/view.tpl' );
$Result['path'] = array( array( 'text' => ezi18n( 'kernel/content', 'My Module' ),
                                'url' => false ) );
$Result['content_info'] = array('persistent_variable' => array( 'extra_menu' => false,
                                                                'left_menu'  => false ));

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Paul Etienney

Wednesday 25 August 2010 2:26:28 am

Thank you very much André.

-- Good websites creation --
My site : http://www.pauletienney.com
Twitter : http://www.twitter.com/p_etienney

Paul Etienney

Wednesday 25 August 2010 8:21:29 am

André, actually it does not work.

I am looking for a solution.

-- Good websites creation --
My site : http://www.pauletienney.com
Twitter : http://www.twitter.com/p_etienney

Paul Etienney

Thursday 26 August 2010 2:18:32 am

I can't find any solutions.

Do i have to work menu.ini, in my view file ? elsewhere ?

Thanks for your clues/help

-- Good websites creation --
My site : http://www.pauletienney.com
Twitter : http://www.twitter.com/p_etienney

Paul Etienney

Thursday 26 August 2010 4:53:59 am

I found the solution.

To remove the left menu you have to add this line to your module.php file.

'default_navigation_part' => ''

Example

$ViewList["list"]= array(
'script' => 'list.php',
'params' => array(),
'default_navigation_part' => ' '
);

-- Good websites creation --
My site : http://www.pauletienney.com
Twitter : http://www.twitter.com/p_etienney

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.