basmistry Posted October 18, 2016 Share Posted October 18, 2016 What want to do is add a menu item to the Backoffice Main Menu as an example the Module 'Homeslider' - is this possible ? I tried Adding a menu Name 'Slider' in the Class 'AdminModulesController' in the module I put in 'homeslider' Menu item is added but when I click on it - I get an error Controller not found!! Any pointers would be appreciated Link to comment Share on other sites More sharing options...
shokinro Posted October 19, 2016 Share Posted October 19, 2016 Usually you need an module to install new menu to back office Admin pages. And in your module you will need create a admin page controller that extends controller class ModuleAdminController . You can also create an standard PrestaShop back office admin controller that extends class AdminControler. But you have to add this controller class to following folder so that it will be loaded automatically. And then you can use it the way you described to add a menu. /controllers/admin/ Link to comment Share on other sites More sharing options...
basmistry Posted October 19, 2016 Author Share Posted October 19, 2016 Thanks I'll do more digging I did do a bit of research - aka googling !! The docs don't seem very clear or complete - it would be good to extend the help to say give a full example of the Backup item mentioned http://doc.prestashop.com/display/PS16/Administration+Menus+Configuration others here in the forum and elsewhere What I want to do is make it easier for the user and allow them to change the Slider images ... without giving them access to Modules where they can do a lot of damage ! Pity there is no plug-in maybe its too easy and I'm not seeing the picture ! Link to comment Share on other sites More sharing options...
shokinro Posted October 19, 2016 Share Posted October 19, 2016 The following page of document you are reading is assuming you have already the controller class of the new page. http://doc.prestashop.com/display/PS16/Administration+Menus+Configuration If you want to create a brand new controller page, you use any existing admin controller, for example /controllers/admin/AdminCustomersController.php Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now