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?

CommentFileSizeAuthor
#1 insert.JPG60.81 KBthaistore
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

thaistore’s picture

FileSize
60.81 KB

i am attaching screenshot

markconroy’s picture

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.

thaistore’s picture

I 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

markconroy’s picture

It'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.

thaistore’s picture

You 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

quicksketch’s picture

Category: bug » support

Insert 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.

markconroy’s picture

Thaistore,

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".

thaistore’s picture

thanks

Snater’s picture

Issue summary: View changes
Status: Active » Closed (works as designed)
mattstein’s picture

THANK 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