Add a plugin folder
skilip - June 18, 2008 - 11:05
| Project: | jQuery plugins |
| Version: | 6.x-1.5 |
| Component: | Miscellaneous |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
How about adding a plugins folder to the module folder.

#1
Thanks for the suggestion, this should definitely happen, eventually. Also there may be the case of plugins which themselves need subdirectories.
#2
Still a pending feature request.
#3
Marked #311736: Plugins in a plugin folder? as a duplicate.
#4
Can I help you maintaining the module? A lot of my Interface modules use your jquery_plugin module and I would really like to see the plugins folder added to a new release. If you give me CVS access, I will do it for you.
#5
My feeling has been that adding a plugins folder in the middle of the 6-1 release cycle is too disruptive, I have been planning to wait until there's a need for another branch to restructure. I guess I'm not clear why this is critical when adding subdirectories would still give you the same number of items in the directory.
#6
With my request #365474: Add jQuery Alerts plugin perhaps you have another reason for considering this now. In addition to the .js file, that plugin has a .css file and an images directory. While there is no technical reason why an images directory cannot be shared between all plugins that might require it, the sense of keeping each plugin's files separated is fairly clear from a maintenance point of view...
The ideal solution would be to allow plugins to either have a subdirectory if they have multiple files, or just be at the top level if they are only a single file. This information could already be supplied in jquery_plugin.jq.inc so it might just be a question of jQuery plugins using information it already has for other purposes?
On that note, I think it is somewhat strange that jquery_plugin_add hardcodes plugin names as ending with .min.js, when at the same time jquery_plugin.jq.inc provides the opportunity to define a different name—giving the casual user the impression that jQuery plugins will know the file name. But that should be another issue and I will raise one to that effect soon...