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.
I believe I have everything set up correctly, but I'm not seeing the image in the node (just an icon that links to the file).
In the field settings I have the Field Type and Widget Type set to Image, the image did upload and the link leads to the file correctly. Permissions are set to allow everyone to view the field. The File System is set to Public.
I have created a view which displays a thumbnail of the image, and that actually displays - but it doesn't in the node.
Am I missing something?
Thanks for any assistance.
Dan
Comment | File | Size | Author |
---|---|---|---|
#8 | imagefield_default_formatter.patch | 1.41 KB | quicksketch |
Comments
Comment #1
AgentD CreditAttribution: AgentD commentedScratch that....found another setting that was not correct.
Fixed.
Comment #2
earthangelconsulting CreditAttribution: earthangelconsulting commentedfor the benefit of others, here's the fix that I think AgentD found (or at least, it worked for me, I am running filefield-6.x-3.0-alpha5, had the same issue):
1a) go to url admin/content/node-type/xxx/display where xxx is the machine-readable name of the content type of your node
OR
1b) go to admin/content/types and click on the "edit" link for that node type, and then click the 'Display fields' link (in the 'tab' area in the main content area header)
2) find the row(s) for the image field(s) not displaying as pictures, and change the select box (under the column Teaser and/or Full Node) from "Generic Files" to "Image".
and that's it!
Comment #3
somerandomnerd CreditAttribution: somerandomnerd commentedThanks- I was having the same problem in Drupal 5, and that sorted it. (Although it was "Link to image", rather than just "image")
Cheers,
Scott
Comment #4
c-c-m CreditAttribution: c-c-m commentedThank you! That's what I was looking for! It was driving me crazy
Comment #5
jvieille CreditAttribution: jvieille commentedThank you!
I am using D6, the "fix" is still valid
Image field has no documentation at all, if something were to be written down, this is a premium candidate
Comment #6
artefatta CreditAttribution: artefatta commentedgoatvirus, thanks a lot for your tip!
Comment #7
quicksketchI'm moving this issue to a task, since it'd be helpful if ImageField simply defaulted to using the Image formatter.
Comment #8
quicksketchI've committed the attached patch which sets "image_plain" as the default formatter for all new ImageFields. I had hoped to implement it a hook_fieldapi() but looks like those values are not passed by reference so putting it directly on the add field form was the only way I could possibly make this work. I'd be happy to have this revised in a future patch.