Closed (works as designed)
Project:
Link
Version:
6.x-2.9
Component:
Miscellaneous
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
4 Jun 2010 at 13:14 UTC
Updated:
27 Apr 2012 at 08:27 UTC
It would be nice if it is possible to have the title of a link prefilled with the title of the page the link is referring to.
For instance if I point to http://drupal.org, than the title of that link would automatically become “drupal.org | Community plumbing”, which is the title of that page (e.g. the title-tag in the head of the HTML).
I believe that would make for an interesting feature, anyone else?
(btw, this is based on the way TextMate handles links)
Comments
Comment #1
jcfiala commentedHm. That is an interesting idea.
Comment #2
prabhakarsun commentedsubscribing
Comment #3
manuel.adanInteresting idea, like facebook does when publishing a link.
Comment #4
rolfmeijer commentedclaryfying the title
Comment #5
dqdI am pretty sure that this is possible with a lil bit javascript to fetch the head tag of a given url, in a way like prepopulate works. But I think this is not a link field feature.
There are many areas where this behaviour would be useful. F.e.: Imagine the auto-link-detector in the text format widgets in Drupal core, like when you type in an url in the body field or here in the comment field of d.o. and then it automaticly turns into html a href markup with issue title. Only one example
http://drupal.org/project/project_issue (good example for input filtering with fetched title support)
http://drupal.org/project/customfilter A good start to fullfill personal wishes on issues like this
Another topic you should maybe take a look in and maybe contribute is this main topic for link field in the moment:
#1318938: An all-embracing attempt for URL validation and Input / Output Form Filtering
Comment #6
rolfmeijer commented@Digidog Thanks for the input, I will certainly look into these.
Comment #7
rolfmeijer commentedJust for the record, I created a module with a text filter that does this, see http://drupal.org/sandbox/rolfmeijer/1549152