Support CCK ImageField module

Robrecht Jacques - February 14, 2009 - 11:06
Project:Node import
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:critical
Assigned:Unassigned
Status:needs review
Description

Support the CCK Image Field module.

#1

StuartDH - February 16, 2009 - 10:25

Hi Robrecht,

Thanks for putting together such a great module. Really looking forward to being able to use it on D6 and I'll be sure to put in at least $100 donation when I've imported my site.

Not knowing too much about the more technical aspects, I'm basically looking to move a vbdrupal5 site to a fresh install of D6

Using Views Bonus module I can create CSV exports of the D5 views that include an imagefield field with the option set to 'path to image'. This results in CSVs with fields that look something like:

files/images/food/fruit/apple1.jpg
files/images/food/fruit/orange213.gif
files/images/food/fruit/pear008.gif
files/images/cars/vwgolf911.jpg
files/images/cars/volvo229.jpg

Would be great if we could use any software to ftp all images into folders for files/images/food/fruit/ and files/images/cars etc, then map them during import using csv fields like those above.

Obviously, it's a similar sort of situation with PDFs/docs or any other files. Using filefield I can create CSV views with files/brochure/pdf/ipod33GB.pdf etc

No idea if that's even remotely possible, but I hope it gives some idea of the sort of workflow that I was thinking about

Thanks again

Stu

#2

cjdavis - February 16, 2009 - 04:38

Do you mean the http://drupal.org/project/views_bonus export? We are working on imagefield import support now, I hope to have something to post for it in the next week.

If somebody else is already working on this let me know so we don't duplicate the effort...

#3

StuartDH - February 16, 2009 - 19:12

Yep, that's the one. If we can import images like above within the week, then I'd put in another $100 as it would save me a good few hours uploading them manually one at a time

Thanks

Stu

#4

doughold - February 19, 2009 - 23:10

cjdavis, I am completing a website this weekend that needs this support, I would be willing to pitch in if you'd like me to do anything, or at the very least I can find bugs for you! I might not be the greatest programmer, but I got the uc_product to import successfully in D6.

#5

BeatnikDude - February 20, 2009 - 01:19

Subscribing, I am am doing uc_product imports and want ImageField support.

#6

drdmmr - February 22, 2009 - 00:48

I've just set up a D6 site and need to import my product data + images...

Subscribing

#7

Robrecht Jacques - February 25, 2009 - 21:26
Assigned to:Robrecht Jacques» Anonymous
Status:active» fixed

CCK ImageField support has been added to CVS. It will be included in the -rc4 release (later today).

#8

System Message - March 11, 2009 - 21:30
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

#9

cjdavis - July 26, 2009 - 20:49
Category:feature request» bug report
Priority:normal» critical
Status:closed» active

It appears that imagefield (and I assume filefield as well) imports are completely broken in the current dev versions. The filepath is being dropped when the information is being inserted into the files table - causing a bad row of data in the table, necessitating some hand editing to remove it.

The correct path is being displayed in the form on step 5, so I'm tracking down where this fails.

#10

cjdavis - July 27, 2009 - 03:43
Status:active» needs review

Ok, tracked it down. Attached is a fixed node_import.inc file that fixes import of any field that uses filepath in node_import - that includes CCK types filefield and imagefield at minimum.

Also includes the fix for the mb_strlen() error from #383926: mb_strlen() errors on taxonomy imports

AttachmentSize
node_import.zip 16.38 KB

#11

hepabolu - August 10, 2009 - 20:14

I used this file (#10) instead of the original one of the dev-version. It did solve my problem with importing IMCEImage fields, but the mb_strlen() remains and no taxonomy settings are imported.

#12

cfab - August 22, 2009 - 23:41

#13

terry22 - September 25, 2009 - 17:02

resolved.
Now I got no errors but no files are referenced in my nodes...
Does someone has a clue?

#14

terry22 - September 27, 2009 - 17:17

Hi again,
does someone succeed in importing imagefield ?
In my case, the fields are correctly imported but no fid are inserted in the content type nodes.

Does someone find a fix?

#15

chrowe - October 10, 2009 - 07:22

Hello,

Thanks to everyone who has put time into this module. It has been a great help. I too am trying to import files without success. I tried a test import of 2 nodes with file attachments.

1. has the file in the File_Field path
http://qa.library.ole.org/sites/qa.library.ole.org/files/files/1/Afr_1st...

2. the other is nested several directories down.
http://qa.library.ole.org/sites/qa.library.ole.org/files/files/1/siyavul...

We would like to preserve the directory structure like in number 2 but would be happy if we could get number 1 working.

I have also tried this with 6.x-1.0-rc4 and have the same problem.

I have some developers who can take a look at this next week. If you can point them in the right direction that would be wonderful. Or I can pay for your time if you can give me an estimate of what it will take.

Thanks again,

Chris

AttachmentSize
text copied from the preview page 7.93 KB
downloaded rows with errors 1.21 KB
Node import debug report 118.38 KB

#16

chrowe - October 10, 2009 - 07:58

I just realized that my main issues is #433738: Node_Import doesn't integrate with FileField_Paths to peform token substitution for tokenized imagefield file paths

When I replace the [uid] in File path with the admin uid '1' the file import works.

For a temporary fix I can just change this while I upload since the site is not under heavy use and then change it back to [uid] when I am done.

As for point number 2. I am still interested in knowing what it would take to maintain the file structure we have.

Chris

#17

terry22 - October 14, 2009 - 11:54

@chrowe :

Hi , in which file do you change the [uid] for fixing the import?

thank you for your help

#18

chrowe - October 21, 2009 - 07:18

@terry22

This is only if you are using the cck filefield module.

It is in the "Path settings" for the field you are importing into admin/content/node-type//fields/

#19

terry22 - October 22, 2009 - 12:18

@chrowe :
thank you I will try this.
for now images are imported in database but not linked to the node.

 
 

Drupal is a registered trademark of Dries Buytaert.