Currently two great options: thumbnail from body image, or from file attachment. Possible third option? Thumbnail from custom selected CCK imagefield! I find this missing. Now, I have to work all the way around with Contemplate and Views...

Comments

hunvreus’s picture

Not a bad idea: I should be able to find a way to update Teaser Thumbnail to take into account CCK fields (that should even be fun).

Krupp’s picture

First of all thanks for the great work on this module. Is this feature still being developed?

bryancasler’s picture

Has anyone figured out if this is possible yet ?

nachinius’s picture

I don't know Teaser thumbnail. But I have done formatters for CCK custom imagefield, What you need is to create a CCK formatter for the imagefield. No more than implementing the hook_field_formatter_info, and hook_field_formatter. (Look at the module http://drupal.org/node/653744 you will find examples for a CCK formatter for a custom imagefield).

hunvreus’s picture

Status: Active » Postponed (maintainer needs more info)

Well, if you are relying on Imagefield to add pictures to your node, you'd probably be better off adding this either in the node teaser using the theme (node.tpl.php or template.php) or by building a view that displays the image field along with the rest of the node info. I may add support for Imagefield in the future, I just have a hard time figuring if this is a genuine requirement here; Teaser Thumbnail was build precisely to avoid having to specify a separate field for the thumbnail (using Imagefield) and relying more on the node attachment and body to find a suitable picture to display as a thumbnail.

bryancasler’s picture

I am running a community site, and the WYSIWYG editor has the ability to upload images into the body, but it is far too complicated for my average user. This has forced me to provide a dedicated CKK upload field for the teaser image. It would be nice if I could spare my more experienced users the extra step of re-uploading their image.

Breakerandi’s picture

For me its exactly the same as described in #6. Such a feature would be so nice, perhaps the option could be "search also imagefields".

hunvreus’s picture

Alright, I'll have a look at adding this along with the bulk update feature.

bryancasler’s picture

I have something important to say....This is awesome!

bryancasler’s picture

Quick question, has the been added in yet?

srobert72’s picture

Subscribe

bryancasler’s picture

Just wondering the status of this, if there is a dev version or a patch I would be happy to give this a try.

klamzo’s picture

subscribing

Breakerandi’s picture

Please give a hint if it will happen in the near future or not..

baff’s picture

#6 is exactely my case! I used WYSIWYG but for most people it was much too complicated. So I switched to ImageField (maybe in future together with Insert - http://drupal.org/project/insert). As teaser thumbnail is not working anymore, I don't know if it would work together with Insert module.

bryancasler’s picture

I think the best solution would be to generate the thumbnail from these sources, in the following order.

1. Body Content
2. CCK Image Field
3. Default Image

This would be perfectly for people using the FileField insert module. It would also allow for a teaser image to be uploaded into a cck field, without there actually being an image inserted into the post.

All Possible Scenarios:
No Picture Uploaded: Generates Teaser Thumbnail from Default Image
Picture Uploaded to ONLY Body Content: First body content image used for teaser thumbnail
Pictures Uploaded to both CCK Field and Body Content: First body content image used for teaser thumbnail
Picture Uploaded to ONLY CCK Field: First CCK filefield photo used for teaser thumbnail

baff’s picture

@ #16: perfect

bryancasler’s picture

Thanks Baff, I did a follow up post in a separate que suggesting that there be another step between 2 and 3 that would pull in the profile photo if the author had one.

#783956: Profile photo before default image

baff’s picture

If this module will integrate with CCk imagefields I think it would be a good idea if imagefield_thumbs and imagecache would be the same directory? Because otherwise you end up with 2 directories with duplicated thumbs.

bryancasler’s picture

What would it take to make this happen. Is this an over haul or just some crafty coding work? I would be able to help sponsor such a patch, but I would want to know what going to be involved in making this happen.

brycesenz’s picture

Subscribing, as I would love to see this functionality as well.

sammy-node’s picture

Great module! Subscribing

jziwenchen’s picture

StatusFileSize
new11.89 KB

I have finished that creating thumbnail from CCK imagefield.
user can select the image where from ? Content Body ? File Attachment? ImageField ?
note: I list the imagefield that this module have.

It's my first time to solve issue.
Maybe have false.
Thank to point it .

jziwenchen’s picture

StatusFileSize
new5.88 KB

I have finished that creating thumbnail from CCK imagefield.
user can select the image where from ? Content Body ? File Attachment? ImageField ?
note: I list the imagefield that this module have.

It's my first time to solve issue.
Maybe have false.
Thank to point it .

bryancasler’s picture

Can anyone test this? I only have a production site at the moment and don't want to risk it.

jziwenchen’s picture

I am sorry.
I only test this patch in my local server.

soncco’s picture

The patch works fine!