Posted by a_c_m on August 12, 2008 at 3:14pm
Jump to:
| Project: | Media Field |
| Version: | 5.x-1.01-rc1 |
| Component: | Code |
| Category: | feature request |
| Priority: | minor |
| Assigned: | a_c_m |
| Status: | needs review |
Issue Summary
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.
| Attachment | Size |
|---|---|
| content.inc_.txt | 11.46 KB |
Comments
#1
I 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
#2
Strange, 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).
#3
I 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
#4
I'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.
#5
Your 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
#6
Just 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 ;)
#7
Would 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