Download & Extend

Patch to support title.module-style links

Project:freelinking
Version:master
Component:Code
Category:feature request
Priority:normal
Assigned:eafarris
Status:closed (fixed)

Issue Summary

Drupal 4.5 and earlier had a title.module that supported similar functionality, with a slightly different syntax. Since title.module has not been released for 4.6, freelinking.module should provide an upgrade path with support for the old title.module style links. See http://drupal.org/node/20699 for the relevant forum discussion.

Comments

#1

Title:support title.module-style links» Patch to support title.module-style links

Here is a patch I've been playing with that might just do what you're looking for. I'm using it on my site but it hasn't been heavily tested.

What it does:

  • Provides option on freelinking setup menu to enable camel case linking. Default is on.
  • Provides syntax for [[title|node-title]] for internal links
  • Provides syntax for [[url]] and [[title|url]] for external links. url must start with http://
  • Escapes regex chars within the brackets during the final replace step to avoid errors

Use and/or tweak as you like.

AttachmentSize
freelinking.module.patch.2005-05-01 4.37 KB

#2

Version:4.6.x-1.x-dev» master

I committed a modified version of your patch to CVS HEAD. It will work fine with Drupal 4.6.0. Many thanks!

#3

New version 1.9 reverses the source and destination to [[destination|source]], to match the order from title.module.

#4

nobody click here