Homepage of www.easymagazine.net | Wem site map of www.easymagazine.net | Email the author of www.easymagazine.net

 

The plugins writing guide

There are three different types of plug-ins in EasyMagazine.

  • Filters
  • Commands
  • Add-ons

If you want to create a new plug-in we recommend to read the article about the plug-in general design, than you can read the specific guides.

Filters

As espected from the name a filter is something that filters an input in order to produice an output.
If you want to be sure that every time you write "hello word", in some of your articles, the text is converted to a link to the wikipedia page for , then you need a filter.

If you want to create a filter please read the how to create a filter.

Commands

A command is basically a trigger ready to execute code when someting happen.
For example if you want that every time that somebody access to your website home page, the list of news, linked to CNN website, is updated, you need a command.

If you want to create a command please read the how to create a command.

Add-ons

An Add-on is a more complex plug-in. If you want add some code to a page to be executed everytime a reader opens the page you need an Add-on.
An Example could be a "link manager" that adds a tool in the administration to edit/delete links and shows the list of the links in the home page.

If you want to create an add-on please read the how to create an add-on.

 


Copyright © 2009, 2010, 2011 Fabio Mattei, designed by zuudesign.sk