Closed (fixed)
Project:
Link
Version:
5.x-2.1
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
5 May 2007 at 09:02 UTC
Updated:
20 Jun 2008 at 04:02 UTC
Jump to comment: Most recent file
In table views there is currently no way to have a column that shows the full url as a link. The attached patch adds such a formatter.
| Comment | File | Size | Author |
|---|---|---|---|
| #10 | link-DRUPAL-5.plain_.patch | 748 bytes | smk-ka |
| #9 | link-DRUPAL-5.plain_.patch | 761 bytes | sun |
| #6 | link-formatter.patch | 914 bytes | gugrim |
| #4 | link-formatter.patch | 914 bytes | gugrim |
| #3 | link-field-display-options.png | 14.79 KB | mlncn |
Comments
Comment #1
quicksketchNot sure why this issue wasn't ever closed, link module has supported "Plain, as text URL" since 2.0.
Comment #2
(not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #3
mlncn commentedComment #4
gugrim commentedAfter upgrading to version 5.x-2.1 I found that this feature is still not available. Since I really need it I had to add my changes to the latest version. A new patch is attached.
Comment #5
gugrim commentedChanging version and status.
Comment #6
gugrim commentedNot sure why my comment and updated patch isn't shown. Trying again:
After upgrading to version 5.x-2.1 I found that this feature is still not available. Since I really need it I had to add my changes to the latest version. A new patch is attached.
Comment #7
quicksketchAh, maybe a more appropriate label for the formatter would be "URL, as link" then? "Plain" indicates plain text, with no HTML.
Comment #8
gugrim commentedAbsolutely, much better!
Comment #9
sun+1 for replacing check_plain() in "plain" with
I doubt that the current plain formatter is of any use for anyone. If someone needs such an useless formatter, then it can be implemented in a custom module.
Comment #10
smk-ka commented@sun:
l() already passes the $text to check_plain(). Thus, your code should be similar to
Updated patch attached.
Comment #11
quicksketchBreaking the current plain formatter is not a good option. I'm the one getting support requests ;)
The current plain formatter is quite helpful in many situations where you're parsing data and just want URLs, no wrapping tags.
Comment #12
quicksketchI renamed to "URL, as link" and ported a version for use in 6 as well. It'll be included in 2.2.
D5: http://cvs.drupal.org/viewcvs/drupal/contributions/modules/link/link.mod...
D6: http://cvs.drupal.org/viewcvs/drupal/contributions/modules/link/link.mod...
Comment #13
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.