Inside the body of Node A, I would like to reference Node X and Y by title. I am using clean URLs.

For example:

Node X Title is "Access Control"
Node Y title is "AAR"

I create a new node and in the body of that node, I write "The source of AAR is Access Control and it should be followed."

How do I auto-link AAR and Access Control to their respective nodes?

Flexifilter works with the single word - AAR - when configured for node.title but it doesn't work with a multiword node title.

The Glossary module looks great but it only works on single word taxonomy terms and the G2 module appears muerto.

I can manually create a relative link, but this breaks if the node is displayed from somewhere else on the site. (see http://drupal.org/node/106608) Using Path Filter works but it needs the node ID - not something the average user can determine.

Suggestions?

Thanks,

Kayaker

Comments

cog.rusty’s picture

Can't you add a front slash to the manual links? Or the base path if there is one?

I also saw this new module recently, which tries to "be smart"

http://drupal.org/project/pathologic

kayaker’s picture

not really. The front slash might work in a simple view, but suppose I want to display all terms on a page.

I'm building a dictionary or glossary. When I list the terms using a PHP snippet, then the "Title" works fine, however, the links within the Body do not.

The Body links are relative to the URL listing them. That is, if I create a PHP snippet to list them from ".../browse", they are relative to browse rather than relative to "../terms".

__________________________________________________________________________________

Aweigh - not all who wander are lost.

kayaker’s picture

I'm building a dictionary/glossary where the node title is either a single word or a phrase.

Within the definition (Body) of a term, I want to reference other Node->Titles.

For example, if the Node Title is WMD then within the node, I want to write "See Weapons of Mass Destruction" and have it link to the node with a title of "Weapons of Mass Destruction".

Or within a term called auto-injector, I want to write " the auto-injector is similar to the AtroPen and is included in the Mark I Kit" and link AtroPen to another node (TItle=AtroPen) and Mark I Kit (title=Mark I Kit).

Using CCK, I can add these as a "See Also", but how do I embed this within the Node->Body?

__________________________________________________________________________________

Aweigh - not all who wander are lost.