Hi,
I use fckeditor, for which you need to disable the separate drupal teaser field. If you want to manually control the teaser, you have to use a button ('drupalbreak') which inserts a graphical line into the body, showing the user where the teaser ends.
This works alright, but I would prefer the user not to deal with teasers at all. Unfortunately, if the user just writes the body and lets drupal automatically count the first 600 characters for the teaser, there is a problem when users insert images or embedded media within this range - the full-size image/media appears in the teaser list.
I was wondering if the 'teaser thumbnail' module can help in this situation? I would like to automatically stop all media appearing in the teaser, except for a standard cropped/resized thumbnail. Does this module ensure there is no other media included in the teaser, except for the thumbnail it creates and inserts?
Thanks.
Comments
Comment #1
hunvreus commentedActually yes: the Teaser Thumbnail module will just select one of your picture to build the thumbnail and when displaying it in a teaser will make sure to wipe out any media (flash or image) from it.
Comment #2
-Anti- commentedFantastic... I'll give it a try.
Thank you very much.
Comment #3
-Anti- commentedSorry, I need more support, when you have a moment spare.
· I set up an imagecache profile, and then set-up the teaserthumbnail module.
· I have a content type called 'prospectus', all pages created in fckeditor.
· None use the separate 'teaser' core feature - the teaser is made automatically by drupal from the body field.
· They all have images in the body ('a href' links).
· I enabled and set-up teaserthumbnail for this content-type.
· I tried editing and saving existing pages, and creating new ones.
So on the frontpage I expected to see a teaser list with a few lines of each prospectus page, and a thumbnail image (created from one of the images residing within the body of the node). Unfortunately, there isn't. The list is no different than when I disable teaserthumbnail.
Further, nothing has been created in /default/files/imagecache/teaser-thumb, except the imagecache example.
I also set up the blog content-type to work with teaserthumbnail, but that didn't work either.
Where do i go from here?
Am i doing something wrong?
Thanks!!
Comment #4
-Anti- commentedHas anyone managed to get this module working?
Maybe it is theme dependent?
Thanks.
Comment #5
hunvreus commentedHi -Anti-,
The thing you are missing is that teaser thumbnails are built on node submission, which means you need to resubmit your nodes for the teaser to be built and display: go to the node edit page and click the "submit" button, then check the thumbnail is appearing in that node's teaser. You may want to watch submit your nodes: there are a couple scripts that do this on drupal.org.
Comment #6
-Anti- commentedSorry, you must have missed this from the above post:
> · I tried editing and saving existing pages, and creating new ones
Any other thoughts?
Thanks
Comment #7
-Anti- commentedOK, it's theme-dependent.
I switched to garland, and imagecache created loads of folders:
sites/default/files/imagecache/teaser-thumb/upload/prospectus/[NAME]
All have image thumbnails in them.
And when the frontpage is viewed, I can see the thumbnails in the teaser list.
So the big question is, what is missing from my theme?
Which file contains the important part? Perhaps node.tpl.php?
BTW, my theme is based originally on the 'Barron' theme.
Thanks.
Comment #8
-Anti- commentedOh dear... you won't believe my ignorance.
I had this in my node.tpl.php, because before finding this module I had to strip
all media out of the teasers:
So to try out your module, I had enclosed that using
<!-- -->For whatever reason, that stopped your module from executing.
But now that I got rid of that php, I *think* it's working properly with my theme.
Thanks very much for your time, and for your work on this module.
It's very, very cool, and solves a huge problem that drupal has with generating teasers.
Along with dhtml menu (another favourite of mine) this module should be in core!
Cheers.
Comment #9
hunvreus commentedThnaks, hopefully this module will be useful to more than the 20 or so users it has at the moment :).
Comment #10
-Anti- commentedI think this will be a popular module, once word gets around.
Just one more potential issue:
Does TeaserThumbnail remove 'embed' tags?
I'm still getting video media appearing in the teaser if it's placed near the top of the node.
Is there a way I can filter out ALL html *except* the thumbnail that the module inserts?
Thanks!