Expose link title in views, separate from link url

stella - July 14, 2009 - 22:54
Project:Link
Version:6.x-2.6
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:needs review
Description

Currently it's possible to display the url of a cck link field in Views, but it's not possible to display the title, separate from the url. This might be needed in cases where you want to overwrite the output of the field, to alter things like the link target or class. Attached patch adds this feature.

Cheers,
Stella

AttachmentSize
link_views_field_link_title.patch974 bytes

#1

brian_c - August 20, 2009 - 04:13

I would really like to see the ability for Link to output just the title.

Then you would be able to output title and URL as two separate fields in a view, and use Rewrite Output to do anything you want with their values right from the Views UI, no theming required.

A typical use case is when you DON'T want the title to actually be the link, you want it to just be a label with a "Click Here" link or something displayed underneath.

 
 

Drupal is a registered trademark of Dries Buytaert.