![]() |
|
Calendar in Sidebar - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: Plugins (https://forum.zenphoto.org/forum-6.html) +--- Thread: Calendar in Sidebar (/thread-7960.html) |
Calendar in Sidebar - PigsLipstick - 14-12-2010 I've just finished shoehorning Quick Calendar into the zenPage sidebar to highlight (and provide links to) dates on which new content has been added. Quick Calendar is a very simple, ajax-enabled PHP-based calendar, easily theme-able, and can be hooked into a dataset to give a calendar view of the data. So, here's the deal, this is far from what I'd consider a proper plugin, but it's probably 85 to 90% functional in context of zen and what it's supposed to do/represent. I think for somebody with some zen plugin dev experience, bringing it to the finish line as a proper plugin would not be too difficult. There is a bit of fat to trim out (stuff that will never be used as part of zen), but most of the work is in packaging and variablizing some of the static bits (i.e.: database login, paths, etc). The way I'm using it, it feels and looks native to zenPage, preserves the month displayed on page refresh where it seems appropriate to do so, and respects permissions based on logged-in user. If anyone wants to hack this into their own site, I'll assist the best I can. Better yet, if anyone wants to carry this forward, I'd be happy to collaborate (and maybe learn a little along the way). Thanks, Calendar in Sidebar - acrylian - 14-12-2010 New plugins are always welcome and it should not be that hard if you got that far. We have a tutorial about plugins as well. Also look at some existing ones. If you want someone to help the best would probably be to offer the code somehow (I have currently no time for this though). Calendar in Sidebar - sbillard - 14-12-2010 Best way for this would be to create a ticket and attach files to it. Attach both the plugin, and a modified theme script that uses it (for testing.) Calendar in Sidebar - PigsLipstick - 16-12-2010 Thanks for the feedback - what I'll do is work on trimming Quick Calendar down to the bare essentials needed for a plugin. Then I'll try my best to variablize the stuff that should be dynamic using the various zen functions. Once I feel that I've gotten as far as I can (or have time for - which is really what I mean), I'll put what I've done into a ticket on the trac site. In the meantime, should anyone stumble across this thread, you can find the working example on my site for review. If you decide that you want the calendar in its functional, but very preliminary state, let me know and I'll make it available. Thanks, Calendar in Sidebar - DdK - 22-02-2011 Hi Adam, whats the progress of the plug-in? Regards, David |