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

CommentFileSizeAuthor
freelinking-namespace.patch2.43 KBnschelly

Comments

Rush_iam’s picture

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

Rush_iam’s picture

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')));
Grayside’s picture

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.

Grayside’s picture

Status: Needs work » Closed (fixed)