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 upload images with cck field, use insert but at the bottom of the node there are still original images?
Do I have to delete those?
I mean how does this work?
Comment | File | Size | Author |
---|---|---|---|
#1 | insert.JPG | 60.81 KB | thaistore |
Comments
Comment #1
thaistore CreditAttribution: thaistore commentedi am attaching screenshot
Comment #2
markconroy CreditAttribution: markconroy commentedWhen you add an imagefield, as a default it is set to display the image on the page - probably at the bottom.
If you then use Insert, it is going to "insert" the image AND also display it at the bottom. You could click insert 3 times and it would display it that many times.
You need to go to your "Manage Display" setting for that content type and set the imagefield to "Hidden". Now, as a default, if you add an image it will not be seen until you "insert" it.
Comment #3
thaistore CreditAttribution: thaistore commentedI am sorry, but that is just stupid, if I do that I will have to change all my articles and use insert on all images that are displayed at the bottom of article. I thought this module moves the image, not that it just copies it
Comment #4
markconroy CreditAttribution: markconroy commentedIt's not stupid, it's just the way that Drupal works. When you create an image field (or any file filed), the default is to "list" that image/file. If you then decide to place that image/file inline, then you are going to have 2 copies of it. If you decide to link to the file three times in your article, then you'll have four copies of it ... UNLESS you decide to disable the "list file" feature.
You do this in you Display Settings for your content type. It's quite simple.
Comment #5
thaistore CreditAttribution: thaistore commentedYou dont understand, most of the aticles of my site have images at the end, like the image field normally handles content
but if I use insert, I want to move the image inbetween the paragraphs of text somehow and I will still get duplicate at the end
so the only think I can do, if I understand is that i hide the attached pictures with css or with content settings?
so only inserted image will be visible and nothing else
Comment #6
quicksketchInsert module is simply a tool that saves you the typing of manually creating IMG tags in your body field. It doesn't advertise that it will modify the behavior of fields. The normal thing to do is to use a FileField for "Attachments" that is separate from your normal images that are displayed at the end of the post. Then use the display options for the Attachments field and hide it from display entirely.
Comment #7
markconroy CreditAttribution: markconroy commentedThaistore,
I understand exactly what you are saying. As quicksketch says above, your images which are "attached" to your node using imagefield (which is basically an image version of filefield) are displaying as "attachments" at the end of each post.
If you DON'T want them to appear there, you must go to "Manage Display" and set that field to "Hidden", so that you can still "attach" them, but they will only be seen where you "insert" them. You do not need to hide them with css, simply go to "Manage Display" for that content type and set that field to hidden.
This will mean that every image on your nodes will be hidden, but using "insert", you can put them in to your nodes at whatever position you want to put them.
That is how Drupal filefields work and how Drupal works - it took me a while to figure it out, but it's a very sensible approach and certainly not "stupid".
Comment #8
thaistore CreditAttribution: thaistore commentedthanks
Comment #9
Snater CreditAttribution: Snater commentedComment #10
mattstein CreditAttribution: mattstein as a volunteer commentedTHANK YOU markconroy!!! (Comment #2)
After years of struggling with this issue I finally found your answer and it worked for me!
------------------
When you add an imagefield, as a default it is set to display the image on the page - probably at the bottom.
If you then use Insert, it is going to "insert" the image AND also display it at the bottom. You could click insert 3 times and it would display it that many times.
You need to go to your "Manage Display" setting for that content type and set the imagefield to "Hidden". Now, as a default, if you add an image it will not be seen until you "insert" it.
-------------------
Key Words for other people searching this topic:
Images repeat, Images replicated, Duplicate images, Article, Multiupload Filefield Widget