Closed (fixed)
Project:
Views (for Drupal 7)
Version:
7.x-3.0-alpha1
Component:
Miscellaneous
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
6 Feb 2011 at 13:59 UTC
Updated:
26 Apr 2011 at 15:08 UTC
Hello!
The image field (Drupal Core) has a "alt" and "title"-field to save additional information for an image. Is it possible to show this information in a view?
Views 6 (used with imagefield) had a special field
field: content-*Name of the field*-data
that could be used to show this information.
Is something similar possible with views 7?
Comments
Comment #1
dawehnerIn theory it should be possible to do this if there is a placeholder which just shows the alt/description text.
That's the recommended way to do it, and it will not change.
Just use a column in the database will not work, because you can only render a full field.
Sadly there is no formatter for this, so this have to be solved somewhere else in contrib world.
Comment #2
dawehnerYou could use for example http://drupal.org/project/custom_formatters, too.
Comment #3
MJH commentedThanks for the help! I will try to get this working (the module "Custom Formatters" you mentioned looks promising).
Comment #4
bojanz commentedCustom formatters are definitely the way to go here.
Comment #5
knalstaaf commentedCan you give a code sample to show the ALT-text in that custom formatter please?
Comment #6
dawehnerPlease be fair and ask this kind of questions somewhere else.
Views is not the central place to ask all drupal questions :)
Custom Formatters module might be a good place to do this.
Comment #8
clemens.tolboomHmmm ... weird we need to do this.
Anyway some hints for using custom_formatters
I installed devel module then added dsm($variables); on top of admin/config/content/formatters/edit/3
which reveals the variables to use. This leads to
Hope this helps a little. For more info goto http://drupal.org/project/custom_formatters for support.