Hi,

How about inserting the values "Image title" and "Image legend" also into the images "title" and "alt"?
SEO wise that would be helpful :)

thanks!

Comments

EmilOberg’s picture

What you're asking for is simple theming. Edit the template file where you want alt and title to be shown and use theme(). What you're looking for is this:

print theme('aef_utilities_image', $image-path, $image-cache-preset, $alt-text, $title-text, $attributesarray); In let's say a node.tpl.php, that'll give you something like:
print theme('aef_utilities_image', $node->field_uberimage[0], 'my-preset', $node->field_uberimage[0]['title'], $node->field_uberimage[0]['legend']);

stefan81’s picture

Status: Active » Fixed

Thank you for your hint and variables!

summit’s picture

Bookmarking, could may be also be used for normal image module? greetings, Martijn

EmilOberg’s picture

May I recommend reading the README.txt file which is included with most modules. In many cases, such as this, it contains explanations for the theme function.

@Summit. What is the "normal image module"? Theme functions are Drupal core and you can module specific theme functions no matter what module it is.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.