I am trying to add an image field to a business node under the ecommerce business directory to display an image of the business. I would like to add other businesses as well, and display an image for each one. I am using
Imagecache
Imagefield
Filefield
The image successfully uploads to the imagecache folder under files, and the image shows on the edit screen for the node, but it doesn't show on the actual page.
I have tried everything I can find on the internet, except I don't know what to do about enabling clean urls's since the site is running locally on a wamp testing server. The enable clean URL radio button under site configuration is greyed out. I don't know if that has anything to do with the problem.
Anyone have any advice for diagnosing this problem? Where is the code located in Drupal that produces the html that displays the image on the node page? Or where is it supposed to be?
Comments
Also, when I create an image
Also, when I create an image field under edit content types/business I get this error:
warning: unlink() [function.unlink]: No error in C:\wamp\www\saffron\sites\all\modules\imagefield\imagefield.module on line 177
At first I didn't worry about it because the input form for the image created successfully. I guess that was wishful thinking.
That unlink utilizes the pathname variable which is probably incorrect. Does anyone know how to set the paths everywhere they need to be set to get this to work? Do I need to do something to .htaccess?
I was barking up the wrong
I was barking up the wrong tree. What I needed was node_images module. Much simpler, with only one dependency, and it works!