We've tentatively added (into svn) some new methods into the module api. to allow a) listing all of the user defined tags, and b) calling a user defined tag by name.
The idea with this, is that each module could create code such that on a certain event, a user defined tag is called, which would allow you to create a workflow.
For example, when a file is uploaded to the Uploads module, you could associate a plugin with that event that creates a news article.
or, when a comment is added via the comments module (hook yet to be written), write your own custom email message to be sent to an admin/
or whatever series of events you wanted to happen. All you would need is an understanding of php, and some understanding of the module api, and the api of the modules you wanted to work with (if any).
i.e.: if a user tag was created called "create_news_on_upload" that did something like (syntax not exact, we still have some things to do):
Code: Select all
$news = $gCms->getModuleInstance(*News");
$news->AddArticle( $params['upload_category'], "The user ".$params['upload_author']." has uploaded ".$params['upload_name']." you can get it here ".$params['upload_link'] );
What do you think?