Closed (fixed)
Project:
Uberimage
Version:
6.x-1.1
Component:
Code
Priority:
Minor
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
23 Jan 2010 at 20:21 UTC
Updated:
8 Feb 2010 at 09:00 UTC
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
Comment #1
EmilOberg commentedWhat 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']);Comment #2
stefan81 commentedThank you for your hint and variables!
Comment #3
summit commentedBookmarking, could may be also be used for normal image module? greetings, Martijn
Comment #4
EmilOberg commentedMay 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.