[development] nodeapi image concept (request for feedback)

Sean B. Fuller sean at seanbfuller.com
Fri Mar 31 20:09:57 UTC 2006


Hey all,

I’ve recently been working on a nodeapi-based image upload module for 
4.7. I saw some conversations on this list a few weeks ago concerning 
efforts to unify image-handling projects and I was wondering how such a 
project would fit with these efforts.

The image_nodeapi module currently has the following functionality:

- Settings page to determine which nodes should enable image uploads.
- Uses the image functions image_prepare, image_insert and image_update 
to do all the heavy lifting.
- Allows users to set a caption for the image.
- Default layout of a floated right image with the caption displayed 
underneath the image on pages.
- Passes the node object to the theme, allowing site admins to 
over-write presentation of images to fit site specific needs.
- Along these lines, admins could use a case statement in their theme 
file that would display a different layout for different node types, etc.

The whole thing weighs in at just over 200 lines of code with a custom 
table for the captions and a css file to handle the default layout.

Would the community be interested in a module like this? I’m willing to 
share the code with any who would like to review it.

Please note that I don’t have write access to the contributions cvs 
repository. If the community thinks this module would be useful, I'll 
formalize my application in order to add this as a contributed module. 
If there are other projects that are about to surface that are similar 
to this, I'm definitely willing to combine efforts. I'll create a forum 
topic on drupal.org with posted code if that is the suggested way to 
proceed.

As this is our first attempt to give back to the drupal community, any 
suggestions on the best way to proceed are welcome.

Thanks,

Sean B Fuller
seanbfuller.com
tractiv.com

ps- About me:
I'm a developer for Tractiv (http://tractiv.com) and we've been using 
drupal for several projects. One of our most recent is the Chicago 
Artists Resource (http://www.chicagoartistsresource.org), which went 
live at the end of 2005.




More information about the development mailing list