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.

CommentFileSizeAuthor
#1 freelinking.module.patch.2005-05-014.37 KBWes Cowley

Comments

Wes Cowley’s picture

Title: support title.module-style links » Patch to support title.module-style links
StatusFileSize
new4.37 KB

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.

eafarris’s picture

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!

eafarris’s picture

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

Anonymous’s picture