Fun with user-modifiable web applications

One of the next milestones I needed for Feuilleton was the ability to create and choose your own template for a blog, giving users the ability to have multiple blog themes. You could consider an RSS feed a special case (or not even a particularly special case) of a custom template, with a custom content type. (Maypole can handle serving custom content types easy enough, so it's no big deal.)

So, of course, the easiest way to give users access to creating and editing their own templates is to serve the templates out of a database. So I put the templates in the "template" table, and created a custom view class that provides templates from the database. After manually adding the template/edit, template/list and template/view templates, I found to my delight that I could not only edit blog themes, but I could of course edit all of the templates that Maypole was using for the application! It's like a wiki, only madly more so.

Of course, Feuilleton has an ACL system to stop people playing around with the system templates if they're not allowed to, but I haven't plugged it in to the editing process yet. So until then, I just need to be very careful when editing the template/edit template...

Email Simon. Registered users can login.