Page 1 of 1

Plugin for customising the style by an average end user

Posted: Sun Apr 02, 2006 9:55 pm
by tom
Hi all,
we use s9y for running a small blog service and I think to use s9y was the best decision.
There are nearly no features missing and everything seems to work fine.

So thanks for the great work!

But one feature is frequently asked: Customising the Style.

And afaik there is no plugin for this? Are there any plans to extend the support for visual customization by an end user?

The first step perhaps could be to write a small plugin which just gives the possibility to let the whole style sheet being edited in the s9y-backend.
Although I never wrote a s9y-plugin on my own, I think it should be a quite easy task to get a first functional version and I would give it a try.
Probably there is required little more work to make it compatible with already existing plugins dealing with styles and templates….

But all this would just give experienced users the possibility to write their own style without the need of accessing the actual css file on the server.

To make it usable for the average user we should think about another attempt.
Perhaps we could write a plugin which interprets a config file which could be packed with a template? Or perhaps just interpreting comments inserted into a css file?

So the plugin could show up a interface where the end user could define:

title: green
background: purple
font-size:

Anyway I think for realizing something like this there should be a standardized interface which could be used by the template designer.
Else we would end up with a plugin like kubrickheader. It’s a great plugin and it’s frequently used at our service but it doesn’t work with all templates it could and new templates using different style definitions always have to be integrated by modifying the plugin source…

Are there any plans or suggestions concerning all that?
Is there anyone else interested in developing such a plugin?

Regards,
Tom

Posted: Mon Apr 03, 2006 3:43 am
by judebert
We've talked about this a bit in the past. We're working on polishing our 1.0 release, so we haven't gotten around to this part yet. Thus far, we're considering allowing the template designer to specify what in his template is configurable, and then presenting the user with a nice form allowing him to customize all those configurables.

A plugin to edit the CSS file wouldn't necessarily be difficult, especially since we're basically talking about a TextArea that we preload with the contents of the CSS file. But Serendipity templates don't necessarily have to be writeable, and the CSS file isn't always named the same thing.

So there are a couple of pitfalls, but it's doable. Not a bad project for a first plugin, if you feel like tackling it.

Posted: Mon Apr 03, 2006 10:58 am
by tom
We've talked about this a bit in the past. We're working on polishing our 1.0 release, so we haven't gotten around to this part yet. Thus far, we're considering allowing the template designer to specify what in his template is configurable, and then presenting the user with a nice form allowing him to customize all those configurables.
Ah just perfect. That's all I was thinking about :)

If there is something to help about, just let me know.


Regards,
Tom