Inline API

Events happening in the community are now at Drupal community events on www.drupal.org.
aaron's picture

I'm currently revising the inline.module to integrate with CCK. Please let me know if there's already work in place that does this type of thing (handling inline uploaded images in cck fields). img_attach won't work for this application -- too many steps involved, and we want the images uniquely associated with the node, rather than as a separate image node.

I'll update here with any patch(es) I submit.

Thanks,
Aaron

Comments

Why not use image_field ?

koorneef's picture

The image field: http://drupal.org/project/imagefield allows images to be incorporated in cck nodes.
Why go with the non intuitive way of getting attached files (which hopefully are images) to display in a cck text field ?

Inline != Image

sun's picture

Displaying content inline means to have the ability to display it anywhere in a content. Imagefield data would be placed always in a certain position.

There is already a draft for a generic Inline API I wrote some time ago. However, integrating Inline module additionally with CCK's imagefield should be quite easy to accomplish. You do not have to develop a new module for that.

regards,

Daniel F. Kudwien
unleashed mind

Daniel F. Kudwien
netzstrategen

Updates?

sun's picture

aaron, any updates from your side?

Daniel F. Kudwien
unleashed mind

Daniel F. Kudwien
netzstrategen

Use token instead?

aaron's picture

I have to think back; this was a long time ago, in Drupal time...

The big issue I encountered in trying to patch this, as I recall, was that since inline is a filter, no information about the specific node is actually passed to the filter. And, unfortunately, you need that information to be able to discover the image field to inline. I think I came up with an idea that might have worked, although it would bypass the filter caching, which isn't always ideal. As I recall, I scrapped the idea, presented an alternative to the client, and dropped work on this patch, since it would probably have required rewriting the module so it was no longer a filter (an even worse idea).

If I were to approach it now, I would probably examine the Token module, to see if it were capable of using or abusing to do something along these lines.

Aaron Winborn
Advomatic, Web Design for Progressive Advocacy, Grassroots Movements, and Really Cool Causes

Aaron Winborn
Drupal Multimedia (my book, available now!)
AaronWinborn.com
Advomatic

Image

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: