Admin plugins integration
Commit 281e6dc6941c0987b75a8777df30b84928f44d6d (as well as 132697c2184a4a89fd3ca16d327bbe47a9644d09) introduced the possibility to dynamically load access to plugins admin section into Typo administration. Links to plugins admin zone are displayed into the admin/themes zone. This is – for now – fairly limited, but we’re working on extending it.
This is important to us since Typo has always been missing a nice plugin API. This is a first step towards something bigger, even thoug we don’t know how big it’s going to be yet.
I’ve released a quick proof of concept using a contact form plugin. It’s really simple, lacks lots of functionnalities one could expect from such a plugin but… it’s a POC and I’ll update it later. To test it, you need to be following our development branch, and update to the latest commit.

First, install Typo Contact Form plugin on your Typo instance:
./script/plugins install http://github.com/fdv/typo_plugin_contact_form.gitThen restart your Typo application.
You can now access the contact form using: http://your blog url/contact_form Administration: http://your blog url]/admin/contact_form
How can I integrate my plugins into Typo administration?
It’s fairly easy.
Typo plugins are just plain Rails plugins.
To have their admin detected, they need to be called typo_plugin_some_name. They should just include a lib/app/controllers/admin/some_name_controller.rb
I recommend you to start with Typo Contact Form code, to make your own plugins Typo compliant.
More to come very soon!
Tue, 20 Apr 2010 21:43 Posted in Announcement
1 comment »
-
By Diego E. “Flameeyes” Pettenò about 2 hours later:
You know that by this pace, I might actually look into implementing DNSBL and User-Agent blacklist within Typo as a plugin? ;)