How to handle frontend menu navigation for an anonymous user

20 views
Skip to first unread message

Hery RABOTOVAO

unread,
Nov 14, 2013, 8:16:40 AM11/14/13
to centurio...@googlegroups.com
 Hi

I ve trying this code below to create my frontend navigation menu :
$navigation = $this->navigation()->getContainer();
$navigation = $navigation->findOneByLabel('Frontend');
$menu = $this->navigation()->menu()->setUseTranslator(false);
if ($navigation !== null) :
    echo $this->navigation()->menu()
            ->renderPartial($navigation,'mainmenu.phtml');
endif;


This function doesn't display my 'Frontend' pages as menu list. It's seem that this code doesn't work for an anonymous user.
How to fix this?


Hery RABOTOVAO

unread,
Nov 14, 2013, 10:40:35 AM11/14/13
to centurio...@googlegroups.com
3 hours of debug to find out that centurion permission doesn't reconize module_index_index
Instead it's reconize module__index

Richard Déloge

unread,
Nov 14, 2013, 10:40:44 AM11/14/13
to centurio...@googlegroups.com
Hi,

You Anonymous user must has the right "all". (It is the default right)
--
You received this message because you are subscribed to the Google Groups "Centurion project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to centurion-proj...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages