first of all, I really like s9y. It's a great blog/cms system. The only thing I've encountered is that there isn't any really good gallery feature. I tried almost every plugin for all the external gallery sites, but this is all quite long-winded. Why should I maintain to sites, one for my photos and one for my blog if s9y already supports a really good media library which is able to handle a lot of photos quite easily.
The only plugin which almost do what I imaging is the usergallery plugin.
So I decided to modified this plugin, so that it fits my needs.
In the end it looks like on my New Zealand blog here:
http://kiwis.beeyou.de/index.php?/pages/gallery.html
What I want was:
- - a gallery which can handle multiple albums on folder basis
- an easy navigation through an album and preview of an whole album at once
- title and description for every single photo
- ability to comment every photo
- integrates completely and smooth in the admin suite
Now I started to develop a complete new version with "clean" code and so
I encountered many problems especially with the last point of the list.
In the "dirty" version I added a new symbol for every picture in the media gallery with which it is possible to add an title and description to all these files like in the picture below:
Furthermore I extended the "manage directories" section, so that everytime a new folder is created the usergallery plugin determines if the folder should be an album. For that reason I added a new text field in the
create directory dialog, for the display name of the album. If this is filled
the new folder is added as album.
My problem is, that I haven't found sufficient event_hooks for the changes in the admin suite...and I would like to develop this plugin without new hooks. Is this possible?
Another thing is, that I make use of the static page plugin exactly like the usergallery plugin. But the thing is, that I only use Smarty for the output. Since I changed completely to Smarty for all the output stuff the page is displayed really weird and wrong. The way it should look is like on my blog mentioned above.
The way it looks now on my testblog is like that:
If I take a look directly into the source code of the site all div containers are in the right order...but my firebug don't share this opinion...like the arrows in the picture above shows. Has this something to do with the staticpage plugin?
Btw, I haven't found something general for how to use Smarty templates in a s9y plugin. I just took the stuff from the guestbook plugin...it seems to work...however with the wrong behavior like the picture tells.
I really would appreciate it, if someone can give me some hints what I could doing wrong with the templating thing and how I can solve the problems with the backend event hooks. Of course I would also post my code if it is necessary.
Hope someone can help.
Jonas