Agaric Design Collective

Turn freelinking off for most content types

By Benjamin Melançon
on 30 Sep
4 comments

Key words and phrases

freelinking module CamelCase too many words restrict freelinking content type Drupal

Tags

Description

The Freelinking module, bless its heart, is a tad too overzealous in its attempt to linkify any words it thinks are in CamelCase.

Furthermore, it interferes with links with capitalization in them, even when the linking is applied first. Agaric considers this a bug.

Ideally one could turn freelinking off for most content types, except say your Wiki content type.

The way freelinks work may be tied too closely to Drupal's input filter functionality, though, and not easy to disable per node type.

Whatever the reason, you can't.

Resolution

For the Agaric site we really don't care about the CamelCase traditional wiki-style linking even on our wiki content type, so we went to admin/settings/freelinking and unchecked this box:

Allow CamelCase linking
If desired, you can disable CamelCase linking

 

Created issue:
Posted by Benjamin Melançon on Mon, 2007-10-01 08:30
Epilogue: I3IVIIVI (6:00:10

Epilogue:

I3IVIIVI (6:00:10 PM): make it stop! CamelCase linking evil!!!
I3IVIIVI (6:00:11 PM): http://agaricdesign.com/note/powertoexchange-finding-focus-launch
Dan Hak (smoothblendz) (6:01:24 PM): turn it off
Dan Hak (smoothblendz) (6:01:30 PM): its the only way
I3IVIIVI (6:01:54 PM): I did.
I3IVIIVI (6:01:56 PM): Yesterday.
I3IVIIVI (6:02:08 PM): and I just resaved the node.
Dan Hak (smoothblendz) (6:03:35 PM): grr
I3IVIIVI (6:05:59 PM): I switched input filters and saved again. That did it.
Dan Hak (smoothblendz) (6:06:16 PM): word

Posted by Benjamin Melançon on Mon, 2007-10-01 19:15
With the explanation: From

With the explanation:

From Drupal user escalos, http://drupal.org/user/167880

Hi, about the second comment on that post. :)

The filters will cache stuff in the DB so that it doesn't have to process it every time the article is viewed. If you want to bulk clear articles with over-zealous Camelcasing, and if you have access to your DB:

mysql> delete from {cache} where cid like 'filter%';

That line will clear all the filters in the cache. The impact is that every article will have its filters re-run on it as the article is visited.

The impact on load/processing is barely noticeable unless you have an innumerable number of nodes which will be hit at exactly the same time...

Posted by Benjamin Melançon on Tue, 2007-10-02 19:31
Of course Drupal has a

Of course Drupal has a solution (not just an escape, as described above):

Filter by node type module

See http://agaricdesign.com/note/set-drupal-input-filters-content-type for more.

Posted by Benjamin Melançon on Sun, 2007-11-04 19:32
Post new comment
The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <blockquote> <h1> <h2> <h3> <h4> <h5> <h6> <small> <pre> <strike> <sub> <sup> <kbd> <s>
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Copy the characters (respecting upper/lower case) from the image.