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

jcfiala’s picture

Hm. That is an interesting idea.

prabhakarsun’s picture

subscribing

manuel.adan’s picture

Version: 6.x-2.8 » 6.x-2.9

Interesting idea, like facebook does when publishing a link.

rolfmeijer’s picture

Title: Add the title of a page as the title of the link » Add the title of the linked page as the title of the link

claryfying the title

dqd’s picture

I 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

rolfmeijer’s picture

Status: Active » Closed (works as designed)

@Digidog Thanks for the input, I will certainly look into these.

rolfmeijer’s picture

Just for the record, I created a module with a text filter that does this, see http://drupal.org/sandbox/rolfmeijer/1549152