Closed (won't fix)
Project:
Node import
Version:
5.x-1.6
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
3 Sep 2008 at 17:05 UTC
Updated:
19 Apr 2011 at 15:52 UTC
Cheers,
I'm struggling to attach (and display) images to nodes created via csv/node import. If I use the CCK image field, I can do it, but only if I specify the file id (fid). Of course a user doens't know their fid.
If I don't use CCK image field, and just treat it as a file attachment, it appears to work, but the file/image doesn't show up in the resulting node.
Is this task possible? Perhaps the CCK module imagefield needs a patch to support searching based on filename as well as file id?
I've read through the past support requests and the documentation, but I'm at my wits end.
Thanks,
drue
Comments
Comment #1
drue commentedOk, more clarity.
I discovered that the CCK imagefield is not supported and have stopped trying to make it work (even though it does work if you give it one of its supported fields, mainly, fid).
I have attachments working. The problem is, well, have a look: http://skitch.com/drue/iykx/show-me-truck.jpg
I'm successfully attaching an image to the node, but it doesn't inline the image, it just gives a link. What's the trick?
TIA,
drue
Comment #2
HansBKK commentedDon't know much about NI specifically, but this seems to be a display/rendering rather than a node creation issue, and therefore nothing to do with NI?
So I think you need to tell us how/why you think the image should display as an image, in other words what contrib module are you using that should make this happen. I see you use the word "inline" so I'm guessing you're using Inline module?
If not, then you could. If so, then you should probably post to their queue instead.
I've seen modules that let you select whether you want to display the attachment as an image or as a link on a per-file basis, and I've also seen config screens that make this choice happen automatically based on the file's size.
Hope this is enough to help get you started. . .
Comment #3
HansBKK commentedWow, just noticed your site's domain name - are you familiar with Skitch Henderson (see http://en.wikipedia.org/wiki/Skitch_Henderson) and is the fact that you're from Minnesota coincidental?
Note your user page here doesn't allow for contact, nor does the personal site listed - no problem if that's intentional, but I would have sent the above directly if I could have.
Comment #4
iguana00 commentedHi -
I'm interested in this topic as well but not re images; I can't find any documentation on how to specify a field name or file name for file attachment in the csv to be used with node_import for batch node creation. I'm trying to create a large number of nodes each one of which has a single file attached, different file for each node.
Would very much appreciate any sample csv or relevant information.
Comment #5
shopgirl_11 commentedHi there,
I am trying to figure out the same problem. how can we do node import via CSV along with the file attachments?
Any help from you guys will be much appreciated.
Thanks.
Comment #6
asak commentedWell, i too am searching for a way to match imported nodes with images, using CCK imagefield if possible.
Has anyone got any progress on this? i'm planning on diving in this issue very soon, and would appreciate some feedback from those who've tried before.
Thanks guys.
EDIT: ok... this seems to work for uploading images as CCK fields (not attachments...) : http://drupal.org/node/143471#comment-915491
Comment #7
Robrecht Jacques commented5.x-1.x is no longer supported. Imagefield support is included in 6.x-1.x.