Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
By jerrac on
Exactly what the subject says. I want to make a simple URL field. Nothing complicated, just a text box to paste the url into, and the Drupal outputs it as a link.
I've done quite a bit of searching, and haven't found any modules for D7 that do this. Did I just miss it?
I tried getting Views to output it as a link, but Views decided to bug out on me. So I don't know if that will work.
Can we get the "Convert URLs into links" filter applied to a simple text box? You can apply it to text areas, but I couldn't find an option to make it work on simple text boxes.
Comments
Yes, you missed it
http://drupal.org/project/link
Thanks. That's exactly what I
Thanks. That's exactly what I need.
Awesomely enough, I just found that after I posted. Heh, spend hours searching for something, finally post asking for help, and then find it as soon as I search again. *sigh*
Solution in views
In D7
create a content type "textlink" with a field "weblink" of type text
In Views create a view
Filters: Node:published Yes
Filters: Node: type = "testlink"
Fields: Node: title
Fields: Fields: field_weblink
In congigure field
REWRITING
Output this field as a link
In Replacement patterns you find "[field_weblink]"
Copy "[field_weblink]" to Box Linkpath above
If the link is external mark External server URL
UPDATE
test in PREVIEW