Closed (fixed)
Project:
Link
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Issue tags:
Reporter:
Created:
14 Jul 2009 at 22:54 UTC
Updated:
3 Jan 2014 at 00:29 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
brian_c commentedI 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.
Comment #2
maijs commentedI created a new formatter "Title, as plain text" which does just that - returns a plain text of the title (without surrounding tags), if empty - empty string. Can be used as a replacement pattern on other fields.
stella's approch is to expose a field only in Views. This approch is to make plain link title available everywhere where it's displayed - within Views or without.
Comment #3
maijs commentedUpdate: Sorry, Drupal thrown an error on me, patch in #2 leads nowhere, this one in #3 seems to be fine.
Comment #4
JoeMcGuire commentedWorks well providing a new "Title, as plain text" field formatter appearing for both display fields and views
Comment #5
jcfiala commentedAssigning to myself so I can find this faster.
Comment #6
jcfiala commentedOkay, good job. I've added this to the link module and it will be in the next release.
Comment #8
wapnik commentedI needed this in 7.x version so rerolled and tested.
Comment #9
Jason Dean commentedhey wapnik
just what I needed - thanks!
Comment #10
jcfiala commentedSadly, the patch no longer applies cleanly due to having had to prepend 'link' to all of the formatter names.
That being said, I can use it to guide building out the title formatter.
Comment #11
jcfiala commentedOkay, I made the change, added a test in LinkAttributeCrudTest to make sure it was working, and committed.
Should show up in the next version, or -dev soonish.
Comment #12
dqdjcfiala++
Comment #13
dqdmarked 4 beta release