Jump to content

Recommended Posts

Posted

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?

  • Administrators
Posted

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.

Posted (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 by selwynorren
  • 3 weeks later...
Posted

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 B) ?

Regards

  • Administrators
Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...