Closed (outdated)
Project:
Views (for Drupal 7)
Version:
6.x-3.x-dev
Component:
node data
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
5 Jun 2008 at 12:30 UTC
Updated:
26 Jul 2017 at 11:21 UTC
Jump to comment: Most recent
Comments
Comment #1
merlinofchaos commentedProbalby not in Views 2; unless what you want is to just make the node title the title attribute; we could probably do that so that it's automatic.
Comment #2
dawehneryou can achive this on two ways:
first you can rewrite the output as link and add what you want to the link.
OR
you use hook_views_data_alter and change the field handler, which is quite hard :)
Comment #3
liquidcms commentedhope this isn't hijacking; but a couple issues with this and i think this post is a feature request as well as a bug:
the "Output as link" option has this: http://screencast.com/t/OTRiNjMxNGYt
there are a couple issues with this:
1. (not sure why everyone gets this wrong), the ALT attribute of an A tag is NOT what gets shown as hover text it is the TITLE attribute.
2. the text entered for the ALT setting here actually isn't even added to the link that gets created as can be seen in this example output:
ALT for
tags is what is used in place of missing images (TITLE is still the hover) but has very little value for A tags.
I agree with vj0914; would be really nice to have TITLE attribute as an option here (as really only one that makes sense).
Comment #4
liquidcms commentedahh.. ok.. my bad.. sort of
even though the text for this setting says ALT (which is wrong) it actually is inserting the TITLE attribute (which is right).. the only reason i wasn't seeing it is because it doesn't seem to support the Replacement Patterns (i had [title])..
Comment #5
andrewsuth commented@merlinofchaos: Automatic titles for links like you described would be ideal.
Comment #6
dawehnerThis should be possible at the moment, but i'm not 100% sure.
Comment #7
iamjon commentedI'm marking this as an unassigned task. If anyone would like to role up their sleeves and take it upon themselves to write a patch it would be awesome
Comment #8
iamjon commentedComment #9
mustanggb commented