Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
This is a replacement supported/cck/content.inc - it includes the patch http://drupal.org/node/143471#comment-894510 to give imagefield support as well.
Untested code only really suitable for developers, but i thought i would share it as it works for me.
Comment | File | Size | Author |
---|---|---|---|
content.inc_.txt | 11.46 KB | a_c_m |
Comments
Comment #1
kanted CreditAttribution: kanted commentedI have tired the above patch file with drupal 5.9 node import 1.6 , if says file (image) does not exist if not available , but if the file(image) is present it shows up white screen, and later when checked it just add the first product without image and skips other products in the list, where should I find the error ,I mean which line ,can plz help us out.
Cheers,
Vk
Comment #2
a_c_m CreditAttribution: a_c_m commentedStrange, it should work. The validation (which is where the error message would be set) is done around line 159 for the image field. This part of the code is supplied by the patch http://drupal.org/node/143471#comment-894510 so any problems with it might be better directed there (you may also want to try a clean version of that patch to insure it wasn't a bug i introduced).
Comment #3
kanted CreditAttribution: kanted commentedI have tired the above patch file with drupal 5.9 node import 1.6 , if says file (image) does not exist if not available , but if the file(image) is present it shows up white screen, and later when checked it just add the first product without image and skips other products in the list, where should I find the error ,I mean which line ,can plz help us out.
Cheers,
Vk
Comment #4
a_c_m CreditAttribution: a_c_m commentedI'm not sure if this was in error but please don't change the project, this is not anything to do with medianode, also please dont as the same question twice, without at least explaining what you tried from my last reply and why it didnt work.
Comment #5
KG2 CreditAttribution: KG2 commentedYour patched content.inc works fantasticly! It's a life saver - thanks for sharing it. (I'm using node import for a CCK content type containing an audio field)
Not being a 'real' drupal developer (I use contributed modules, search forums and follow instructions when stuck) - I was wondering when you say,
"Untested code only really suitable for developers", should I be concerned?
Thanks again
Heli
Comment #6
a_c_m CreditAttribution: a_c_m commentedJust a disclaimer really, that i've only tested it as far as getting it to work on my own implementation, so if your not a developer (or at least someone who doesn't mind getting their hands dirty) then it might be risky to mess around with it :)
But congrats on getting it to work. If your going to DrupalCon you can buy me a beer ;)
Comment #7
KG2 CreditAttribution: KG2 commentedWould love to go to DrupalCon, would love to buy you a beer. Unfortunately I'm currently a financial detainee in South Africa. But maybe, one day...
Thanks again for posting.
Heli