johnny_99 Posted February 9, 2010 Share Posted February 9, 2010 Hi I want to add the newsletter module as a actual menu under modules in the back office (next to the positions menu). Back Office >> Modules >> Positions. How do I go about doing this please Link to comment Share on other sites More sharing options...
johnny_99 Posted February 10, 2010 Author Share Posted February 10, 2010 has no one done this at all or created menus? Link to comment Share on other sites More sharing options...
rocky Posted February 11, 2010 Share Posted February 11, 2010 There is a module here that adds a newsletter tab to the Back Office. Link to comment Share on other sites More sharing options...
johnny_99 Posted February 11, 2010 Author Share Posted February 11, 2010 Hi thanksyeah ive seen that - I should have been more clear the newsletter was really an example but say theres another module in the modules screen but i want to link to it directly from the top menus/sub menus how do I go about doing this? What Im trying to so is avoid giving any body direct links to the modules screen and would like for them to access only specific modules(the ones that can be configured) separately Link to comment Share on other sites More sharing options...
rocky Posted February 12, 2010 Share Posted February 12, 2010 It is not a simple thing to turn a module into a Back Office tab, but I'll try to point you in the right direction. Create a new PHP class in admin/tabs that extends AdminTab. Copy over the postProcess() function from the module's PHP and the contents of getContent() function into a display() function. Once you've done this, go to Tools > Tabs, then click "Add new", enter the Name of the tab, enter the name of the PHP class you created (without the .php extension) under Class, then choose the tab you want the subtab to appear using the Parent dropdown or leave it on Home to make it a main tab. 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