Imagecache...Very tired...clickable thumbnail->original , duplicates and only one of the duplicate are OK.why?

oklok - November 2, 2009 - 18:10

So I have tried doing this according to forum user "ANTI"
_____________________________________________________________________
The 'best' (ie. easiest solution for the user) I have found so far is:
· cck + imagecache + filefield + imagefield for uploading the image to a folder.
· insert module for inserting the uploaded image into the wysiwyg editor window.
· And if you want a really smart finishing touch, the image resize filter module.

Here are the module pages:
http://drupal.org/project/cck

http://drupal.org/project/imagecache
http://drupal.org/project/filefield
http://drupal.org/project/imagefield

http://drupal.org/project/insert

http://drupal.org/project/image_resize_filter
_____________________________________________________________________

But Im getting this annoying duplicate picture all the time. I have tried for 2 days without sucess! Getting tired of this. I hope someone can explain how to fix this.
Let me guide you what I have done.

1. Installed a whole new drupal with wamp with a new and fresh database
2. installed cck, imagecache, filefield, imagefield, insert and image resize filter
3. Installer TinyMCE and WYSIWYG
4. Went to Imagecache and preset a thumbnail setting 166x166, save
5. Installed blogpage
5.1 installed Shadowbox (have almost the same function as thickbox )

6- Went to Home › Administer › Content management › Blog entry and added new field (field_imagecache, type:file, widget type:image)
6.1 I choosed that the user can input: Thumbnail, autimatic and original img.
7. Ok so good so far. When Im trying to upload a image and insert it to the text editor, a small thumbnail are showing upp. But when saving and me trying to click the thumbnail, nothing happens.
IMO the thumbnail should expand using shadowbox and show the original big size pic.
8. So I tried to go to Home › Administer › Content management › Blog entry-> display fields.
From here I choose Above: Shadowbox: Thumbnail to original (this is for teaser), and for full node I choosed Shadowbox: Thumbnail to original , then save

9. Now when uploading a pic and insert as thumbnail I got 2 duplicates, one above which isnt clickable and one under the unclickable pic that IS clickable and expands to the orginal size.
So it seems that the duplicated clickable thumbnail works as I want, but why is it a unclickable thumbnail above it?

IM GETTING CRAZY SOON ;)

See pic at
http://drupal.org/files/issues/test_7.jpg

When clicking the image below it looks like this
http://drupal.org/files/issues/pic_1.jpg
And this is exactly what I wants! But having the duplicated unclickable pic above are confusing

Summary: How do I remove the UNCLICKABLE () imagecache and have the CLICKABLE imagecache still?

Edit your content type

chiebert - November 10, 2009 - 06:27

Edit the content type that has your imagefield in it, and then click on the 'display fields' tab. Choose 'hidden' for the display of the imagefield in both the teaser column and the body column. When you added the imagefield, it defaults to display in the body content according the order in the 'manage fields' tab. Unless you hide these fields in the the display fields tab, they show up anyway, in addition to the inserted versions.

 
 

Drupal is a registered trademark of Dries Buytaert.