Re: [pLog-General] Improving the plugin system...
Brought to you by:
jondaley
From: Reto H. <pl...@hu...> - 2004-05-01 13:22:59
|
At 14:45 01.05.2004, Oscar Renalias wrote: >> - The new plugin framework will allow more complex plugins. If they are >> properly OO written, they might need a lot of classes/files. Maybe a >> new folder structure like /plugins/myplugin/<mypluginfiles> would keep >> the things clean. > That's exactly how it's been implemented for next version. The idea is > that plugins are self-contained in their own folders. Though it will > completely be up to the plugin developer where to put things, at least > this is what we will recommend from here. Great! > Yeah, that's something I haven't solved yet. But I agree with the idea, > localized strings is something the plugin should provide and the locale > file(s) should be saved under plugins/myplugin/locale. The only problem > is what happens when the blog is using zh_TW and the plugin doesn't > come with this one... Should we use en_UK as default? Or force the > plugin to inform the PluginManager which locales provides? I think this should be a standard configuration option of the plugin. The user choses the language at the initial setup. (And can change it anytime of course). > Also, the same issue exists with templates but I have already taken > care of that one :) Plugin templates must be stored in > plugins/myplugin/templates and I have defined a couple of new methods > that will fetch templates from plugin-specific folders instead of from > the main templates/ folder. Cool, haven't thought of that. But that would actually very useful with my contactForm plugin :) >> - plugins should have an option to be removeable from the database. >> (the question here is, if the framework provides this or if this is >> left to the plugin author > What do you mean? You mean, their own configuration settings and > tables, if any was created? Yes, exactly. > We could of course force plugins to implement a method called > PluginBase::getPluginConfigKeys(), or something like that, That's exactly what I was up to. reto -- A 14.4 modem makes you want to get out and push! |