Add Image module support
| Project: | Deployment |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Hi folks,
I am running the latest version of deploy on drupal 6 (pulled the deploy and service modules down Apr 1 2009).
I was wondering if it was possible to publish pages with attached images using deploy. I'm not using CCK or anything, just the page content type with the image module installed and attached images.
I looked through the documentation, but couldn't find an answer. I tried it myself and got an "An illegal choice has been detected" error message. I searched the support queue and didn't see anything.
Before I try to get deploy working, I wanted to make sure that this use case works. At the least, it'd be nice if the image database information was deployed (as I'm pretty sure the file won't be able to be deployed, based on the documentation).
Thanks,
Dan

#1
I have not done any work with Image module, so I have no support for it at the moment. In theory this should not be hard, since Image just makes nodes correct? I have done some work with file transfer for filefield/imagefield that is working well but is stuck behind a patch in Services right now.
Do you just nodereference the Images? I do have a nodereference related bug which could be causing you problems, but no patch yet.
Sorry, this is still a pretty early release so things are a little rough still.
#2
heyrocker,
I'm afraid I don't really know what a nodereference is (I'm a total drupal noob).
As far as I can tell, when you add an image, there's an entry added to the node table. There's also an image table (that specifies which nodes are images, and appears to reference a row in the files table) and an image_attach table (that map images to nodes). Does that qualify it as a nodereference?
The image files also live under sites/default/files/images, but I thought I might be able to gimmick up something for that if the image content type and attachment to a node could be deployed.
(I looked around drupal.org for the definition of a nodereference but didn't find anything that I could understand.)
Thank you so much for this great module.
Dan
#3
I looked into the Image module today. It should not be terribly hard to get this working, however it has a couple dependencies I want to get to first.
1) I need to add some functionality to Deploy so that module authors can package deployment functionality with their modules, rather than me writing a new module for everything I want to support. This will make installation and configuration wayyyy easier too.
2) If possible I'd like to be able to transfer the images themselves. This is unfortunately a little more of a long shot it looks like. I'm going to be committing a patch which transfers images using drupal's files table, but Image appears not to use this. I need to investigate it more to see.
So I've made this a feature request and left it open. It should definitely be added, but it might be a bit before I get to it.
#4
Great, thanks!
As stated before, I'm a total drupal newbie, but if I can help with testing, documentation, etc, let me know and I'll be happy to do so.
#5
Thanks!
#6
Hi heyrocker,
Wondering if there'd been any progress on this issue?
I just installed the latest version of deploy (Aug 3) and Services (Aug 9) and pushed a node with an image over. The image had been added to the node (a page) using img_assist. The image node was deployed as well; no errors.
The text: [img_assist|nid=2|title=test image|desc=|link=none|align=left|width=75|height=100]" was transferred just fine, and img_assist knew enough to display the title on the destination server.
I pushed the image file manually, but that still didn't work. I had to re-upload/re-add the image to the image node, but the page still didn't show the image. Finally, I had to re-add the image to the page, and then img_assist noticed and both images showed up on the new page.
I was wondering how you handled images in pages in your own servers on which deploy is running?
Thanks.
#7
In my own system I used Imagefields, which are supported as long as you use a patch to Services #376226: Add a file save service. I hope to have that committed soon. Image node support, and upload module support, is a little different and I just haven't gotten around to it yet.
#8
Subscribing.
I use the Image module and also the Image Filter module, it would be excellent if Deployment could push related Image nodes (either attached or linked to via [image:nid] text, and the image files themselves up to the target server. I would be happy to help write the code to integrate these with Deployment if anyone can give me some hints as where to start (I know a fair bit about Drupal and module writing but not read though any of the Deployment module code yet...).
#9
I'm one of the maintainers of image module.
Subscribing to this so you can ask me questions or whatever about image module :)