transparent link change into internal links.

alexanderpas - July 16, 2008 - 07:59
Project:Path Filter
Version:HEAD
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:duplicate
Description

feature request for official implementation of feature described here:

http://oregonstate.edu/webprojects/drupal/internal_links

In our implementation, we have modified the PathFilter module to automatically take any link with 'http(s)://server.hostname.com/path/to/drupal/install/' or '/path/to/drupal/install/' and replace it with 'internal:' when saved to the database.

On edit, all instances of 'internal:' are replaced with the appropriate relative or absolute link so WYSIWYG editors will function correctly. On view, all instances of 'internal:' are replaced with an absolute or relative link to the item. Always remember that they will be stored as 'internal:' in the database.

#1

alexanderpas - July 23, 2008 - 23:07

I've send the following mail trough this form:
http://oregonstate.edu/tools/mailform?to=osuweb@lists.oregonstate.edu&re...

------

To: OSU Central Web

Subject: OSU Drupal Internal Links

Message:
To: Webmaster Responsible for Drupal Modules

Dear Reciever,

I've read about a very useful change you've made in the Drupal Module PathFilter (http://drupal.org/project/pathfilter)

This change is explained on your site here:
http://oregonstate.edu/webprojects/drupal/internal_links

My request, as member of the Drupal community is the following:
If it is possible, are you willing to contribute the change back into the community?

If you decide you're furfilling this requestit can be done in one of the following ways:
- Add a response with a patch-file (http://drupal.org/patch/create) to the following issue: http://drupal.org/node/283275
- Send the changed module (usually found at /sites/all/modules/PathFilter/ in your Drupal root directory) to my e-mail address: alexanderpas@yahoo.co.uk

Either way, I would like to thank you for your time.

Awaiting your awnser, Alexander Pas

#2

Garrett Albright - July 25, 2008 - 23:24

My Pathologic module may work for this case; it can "unabsolute" absolute paths. It doesn't change the content of a post before it is put into the database, however; that is not the task of an input filter.

#3

harking - July 31, 2008 - 23:30

Hi Alexander,

Here is the patch: http://drupal.org/node/148300

#4

alexanderpas - August 2, 2008 - 20:23
Status:active» duplicate

duplicate of #148300: [Push #1]: Automatic url conversion to internal links

if you have anything to add to this issue, please do it in that issue

 
 

Drupal is a registered trademark of Dries Buytaert.