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: [pothompson] Plugins

By Dave - March 12, 2009

Hi Paul,

We're still figuring out the best way to do plugins for CMS Builder.

I'm actually re-writing the plugin system for the next release to be more like wordpress. This should make it a lot easier to write plugins and then we can add hooks where needed as people request them. On top of this I know a number of programmers are already familiar with that system.

So that new release should be out soon and then you could work with that.

What kind of plugin do you want to write?
Dave Edis - Senior Developer
interactivetools.com

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.