Plugins

4 posts by 2 authors in: Forums > CMS Builder
Last Post: March 23, 2009   (RSS)

I've looked at the code to see how I might be able to implement a plugin. Essentially, I'd like to add a custom function that will be accessible via the section menu which is built based on the sections editors that have been defined.

I can see the hooks in the code to pick up an plugins that have been defined based on whether a certain file exists in the plugin directory, but can't actually see anywhere in the code that does anything with these plugins.

Can anyone offer any (basic) advice on how to implement a new plugin?

Thanks - Paul.

Re: [Dave] Plugins

Sorry for the delay Dave.

The 'plugin' that I'm hoping to include is simply a different view of the data already held in the database but only available from the Admin interface. So, I'd like to write something that's essentially a viewer, but have the software automatically create a menu option in the cmsAdmin area.

But, I think it would be good to allow any type of plugin to be added in this way. That way, someone could write a plugin to do anything and it still be included in the same look and feel as the rest of the cmsAdmin sections.

Hope that makes sense!

Thanks, Paul.

Re: [pothompson] Plugins

By Dave - March 23, 2009

Hi Paul,

We're working on how to allow that, but it's a ways off.

The simplest solution right now would be to hard code your link into the menu in: /lib/menus/header.php

Hope that helps!
Dave Edis - Senior Developer
interactivetools.com