use alt and title

adresaklumea - May 21, 2009 - 20:42
Project:Teaser Thumbnail
Version:6.x-1.4
Component:Miscellaneous
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

I see that you use alt and title on your blog http://teddy.fr/blog. How can I do that ?

#1

adresaklumea - November 9, 2009 - 22:34

I tried to use phptemplate_teaserthumbnail_thumbnail but with no success.

I used $thumbnail = theme('imagecache', $preset, $thumbnail, $node->title, $node->title, $attributes); but node->title it's empty.

I'm using the teaserthumbnail in views. Like here http://www.usgirl.org/american-girls

Any ideas?

#2

adresaklumea - November 16, 2009 - 16:32

Still talking alone...
I find a minor workaround :

        if (empty($this->options['preset'])) {
          $node->teaserthumbnail = $thumbnail;
          $node->type = $values->type;
          $thumbnail = theme('teaserthumbnail_thumbnail', $node);
        }
        else {
  $node2 = node_load($values->nid); // <-here
          $thumbnail = theme('imagecache', $this->options['preset'], $thumbnail, $node2->title, $node2->title, $attributes); //<-here
        }

It's messy I know and works only if you setup options['preset'] in views.

 
 

Drupal is a registered trademark of Dries Buytaert.