November 20, 2008

more plugins

Tags:
Filed under: ZenMagick — DerManoMann @ 4:27 am

As usual there will be new plugins to go with ZenMagick 0.9.3. I’ve already blogged about the FirePHP plugin and I might have mentioned that the Who’s Online code moved from core into a plugin (with a slightly changed format).

There will actually also be a new plugin I haven’t written about and that is named zm_form_handler.

It does exactly what the name suggests – it handles form submission and emails the form content to a configurable email address. So this is the ZenMagick equivalent to the generic form handler CGIs that most hosting provider offer.

The advantage is that it does take advantage of all the ZenMagick code, including things like the validation framework, URL mappings, etc.

The simplest possible way of using it would involve the following steps:

  1. Once the plugin is installed, configure the page name for the new form (the value of main_page)
  2. Create a new view with the same name that contains a form to submit. If required, set the form id and create your custom validation rules (same as all other form validation is done in ZenMagick)
  3. Create a notification template (example provided).
  4. Done!

No Comments

No comments yet.

RSS feed for comments on this post.

Sorry, the comment form is closed at this time.