PDA

View Full Version : Writing Plugins


pk4
10-04-2007, 07:29 PM
I've been trying to walk through the instructions here to create a plugin
http://wiki.cerberusdemo.com/index.php/Writing_Plugins

It says:
Log into your development helpdesk and go to Configuration->Plugins. Enable your plugin and save. Nothing spectacular should happen yet, but nothing should break either.

Is this now obsolete? It would seem that the extensions page pulls it's data from the plugins table. If you create an extension this way, i don't see how it would get into that table in the first place.

Can someone steer me in the right direction?

Hildy
10-04-2007, 08:08 PM
No, it shouldn't be obsolete. Jeff only wrote it a week ago. ;-)

Cerberus goes through your /plugins directory looking for subdirectories with a plugin.xml file, and it parses those xml files.

pk4
10-04-2007, 08:59 PM
Right - it does parse the plugin.xml files, but it doesn't add the record in the plugins table.

The Configure -> plugins page won't display it if it isn't in the plugins table.

jstanden
10-04-2007, 09:36 PM
Hey there!

That section isn't complete, but it's accurate. ;)

Just by visiting the 'Configuration->Plugins' page it automatically clears and rebuilds your cache from the plugin.xml manifests.

There used to be a button to read in the manifests from the disk, but we figured it would be easier if visiting that section just always rebuilt the cache.

Hope that clears things up!