Changing the /freelinking namespace

nschelly - November 13, 2007 - 16:35
Project:freelinking
Version:5.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:needs work
Description

Where we use freelinking, it's useful to be able to point freelinks to something other than the /freelinking namespace. The attached patch accomplishes this and I think others would also find it useful. In our case, we are using it with Wikitools which is taking over /freelinking URLs anyway. We prefer to keep the namespace more generic to the purpose (/wiki) than the implementationi (/freelinking) and I imagine that may be useful with or without the Wikitools module.
-N

AttachmentSize
freelinking-namespace.patch2.43 KB

#1

Rush_iam - February 8, 2009 - 17:56

how to port this patch to 6.x-1.7?
really need for it

#2

Rush_iam - February 8, 2009 - 20:27

ah. found how to edit this path: look at lines 479 and 487

479        $replacement = l(html_entity_decode($phrase), 'wiki/' . rawurlencode($freelink), array('attributes' => array('class' => 'freelinking')));
487      $replacement = l($wikiword, 'wiki/' . urlencode($wikiword), array('attributes' => array('class' => 'freelinking')));

#3

Grayside - November 13, 2009 - 17:12
Version:5.x-1.2» 5.x-1.x-dev
Status:needs review» needs work

This change is postponed for 6.x-1.x, possibly indefinitely. Please focus feature needs for 6.x towards FL3.

The patch needs to be rerolled against 5.x-1.x-dev, at which point I'm willing to commit it to -dev for community testing. I do not run Drupal 5 and do not have time to provide proper support for it.

 
 

Drupal is a registered trademark of Dries Buytaert.