Is this module compatible with Image Assist?

Fayna - February 22, 2009 - 20:30
Project:Teaser Thumbnail
Version:6.x-1.4
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

I was originally using IMCE with TinyMCE 3.x for images and Teaser Thumbnail worked wonderfully. Now that I'm trying out Image Assist with TinyMCE instead, thumbnails don't show up at all with teasers. This problem only happens when I change the image's output format to "filter." If the output format is HTML, the thumbnails show up as normal.

Also, the image will continue to show up in the node's full view with either output format.

I'd really like to use the filter output method as that seems to be the preferred option. Any ideas?

#1

xalexas - April 10, 2009 - 12:53

Does not work for me also with image assist, not even with HTML format. It just strips out IMG. It works fine with IMCE.

#2

yakker - May 7, 2009 - 21:14

Same here. And I'm not using TinyMCE.

Whether ImageAssist it's set to Filter or HTML, no IMG tag is generated in the teaser view. The rest of the HTML is, though (Span, etc), giving me blank space with the caption in it. The only time I can get Teaser Thumbnail to work is when I attach the image (Image Attach or Upload module as a file) and set the Teaser Thumbnail options to allow it to use file attachments.

Would really love to place images inline in the body tag and have a module figure out how to take one of those tags, locate the associated image, and resize it according to ImageCache presets in order to display it as a thumbnail, or (shoot for the stars, right) parse it into a node variable that I can control in the tpl file and take out the corresponding IMG tag from the body on the fly....

:D

Very impressed, all around, with the functionality that has been provided with respect to images - tough code, and lots of it works.

#3

evil_cz - August 25, 2009 - 20:06

Here is a solution for ImageBrowser: http://drupal.org/node/437576
Simply set URLs that will be served through Apache - and it WILL WORK! (for new images)

#4

konrad1811 - September 27, 2009 - 11:31

Img_assist or rather imag_node?
I guess teaser thumbnail does not take image from image_node to create a thumbnail...
So now in my teaser build with image_node I can only see image caption and title which I'd like not to see, but to show only small picture...

Anyone know how to write some patch on this?? To show thumbnail image and hide caption and title of image in teaser?

#5

yakker - September 28, 2009 - 23:55

Not sure this helps you Konrad, but here goes:

With ImageField and ImageCache, you can get some major control over captions etc.

Just create a preset in ImageCache called "teaser_image"
On your content type, create an image field for it.
Then in the content type display settings, under "teaser," make sure you select the "teaser_image" preset for your image field, and set the label to "hidden"
Also in the content type, make sure your image field comes before the body tag.

Or you can get a bit more fine-grained control by working with the tpl files.
I used some PHP in node.tpl.php to conditionally display different layouts if it was in teaser mode or not. In teaser mode, I explicitly called my image field before I called the body content (only the body - not the $content variable). I put float on it in my CSS, and it all worked out. Keep in mind that it will behave according to the preset you gave it under the display settings for the content type.

<?php
//start tpl?>


<?php if($teaser): //if in teaser mode ?>

<h3 class="title">My title</h3>
<div class="content">
<?php print $node->field_myimagefield[0]['view']; //this prints the first image in the field (if you've allowed for multiple images)?>
<?php print $node->content['body']['#value'];?>
</div>

<?php else: //if a Full Page Node?>

<!-- do full page node html here -->

<?php endif;?>

If you want even more control, you can look for the theme functions in the Imagefield module code, copy them to your template.php file and work with them to add classes or affect the HTML as you need (I'm not completely familiar with them, so take that with a grain of salt ;).

#6

konrad1811 - September 29, 2009 - 09:10

Hi!
Thanks for answear.
I found I may have what I want just using CCK and node-reference!
Just found how great options it has!
Some small changes in node.tpl will be needed too but I hope I'll manage to receive what I need.

 
 

Drupal is a registered trademark of Dries Buytaert.