selwynorren Posted January 12, 2011 Report Posted January 12, 2011 Hi All, I remember reading something about this when Dave created the events module but I just cannot seem to find the reference anymore. I want to create a new phpvms module that the admin part can be managed through the vms admin back-end. Currently the events module can be managed through the backed and its listed under add-ons, I want to have the same ability so that when an update takes place the module is not wiped at all. Is this at all possible? Quote
Administrators simpilot Posted January 13, 2011 Administrators Report Posted January 13, 2011 You can create your own admin module just as you can on the pilot side. Just place it in the admin/modules folder. To automatically add your link under the addons section of the admin menu put this in your new module file public function NavBar() { echo '<li><a href="'.SITE_URL.'/admin/index.php/mymodule">My Module</a></li>'; } As long as the base phpVMS application never comes up with an admin module with the same name, updates will not affect the custom module. Quote
selwynorren Posted January 13, 2011 Author Report Posted January 13, 2011 (edited) Hi Dave, Thanks very much, I had somehow written code incorrectly or used an incorrect name. as Soon as I called it what it should be, everything was all good. Thanks for the help Edited January 13, 2011 by selwynorren Quote
Wingthor Posted February 2, 2011 Report Posted February 2, 2011 You can create your own admin module just as you can on the pilot side. Just place it in the admin/modules folder. To automatically add your link under the addons section of the admin menu put this in your new module file Stupid question... Where is the addons section of the admin menu ? Regards Quote
Administrators simpilot Posted February 2, 2011 Administrators Report Posted February 2, 2011 It will show up between Site Settings and View Your Site in the menu when you have any addon's. If there are none using this code then it will not show up at all. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.