I bring up this question again as I am having the same problem. Particularly, I’m not sure how to set the parameters for a new entry in the filter admin_navigation_main. Except “label” that is self-explanatory, when looking, for example, at the SimplePage plugin there are also “uri”, “resource” and “privilege”, how to set those?
Following Daniel instruction I have create an “IndexController.php” file under “controllers” with a “testAction” calling the views under “admin/index/test.php” but I get the following exception:
Zend_Acl_Exception: Resource ‘MyPlugin_Index’ not found in /var/www/omeka-dev/application/libraries/Zend/View/Helper/Navigation/HelperAbstract.php on line 635
What I am doing wrong?
Thanks in advance!
Best
Edit: I managed to get rid of the exception by adding the hook define_acl and adding the Zend_Acl_Resource “MyPlugin_Index” (the same name I set in the “resource” field in the admin_navigation_main filter). Now I don’t get an exception but still I get a 404 error…