Linking to other nodes within text - suggestions?

adam_b - April 29, 2009 - 10:41

I'm specifying a Drupal site which includes vast quantities of heavily structured textual data (footnotes, glossaries, indexes, cross-references, etc). I've been able to work through most of the requirements but I'm having trouble finding a good mechanism for linking nodes. Linking in a separate field is fine (use CCK Node Reference, specify views restricting which nodes can be displayed for linking, etc). The problem is when non-technical writers/editors need to link from within the body text.

The only options I've found so far are:

  • http://drupal.org/project/ulink: This is getting there, but not great - it requires the (non-technical) editors to type in some arbitrary code and a keyword, wait a few seconds while results come up, then select from the full number of nodes in the entire site.
  • http://drupal.org/project/linktocontent: The specifications look promising, but it's not compatible with recent D6 releases, and doesn't appear to be maintained.
  • other link filters require the editor to know the NID, which isn't practical for the editors
  • none of them appear to handle linking to anchors within other nodes

Ideally, what I'm looking for is:

  • integration within WYSIWYG interface
  • editor inserts cursor or selects text, then clicks a link button
  • editor is presented with a browse-and-select interface listing nodes (visibility being determined by view/taxonomy/menu, etc)
  • editor can select a node for linking - and ideally have the option to create an anchor point within that node

I can't be the first person who's needed this?... any suggestions gratefully received.

Perhaps

yelvington - April 29, 2009 - 11:05

Not exactly what you're imagining, but perhaps this will help: http://drupal.org/project/freelinking

Thanks, but not really what I

adam_b - April 29, 2009 - 13:12

Thanks, but not really what I want - the writer/editor would still have to remember the exact title from a list of thousands of nodes (which might have duplicate titles under different taxonomies). The ability to create new nodes on the fly could be useful, but could also be an administrative nightmare.

uLink also allows you to double click

garthee - July 24, 2009 - 09:37

uLink also allows you to double click and select link from available options. For instance, if you want to find references for GSoC, just type as you go and then double click the word, you will get the option to choose from as you get by typing [l|href|text]. You can see it in screenshot (don't worry about the word already appearing inside a tag [], but it will be the same for any words get doubleclicked)

Of course in Drupal 5 you have to enable ISERCH option form the uAuto toolbar that appears above the editor (again in the screenshot).

Screenshot : http://gworks.theebgar.net/wp-content/uploads/2009/07/ulink-screenshot.png

 
 

Drupal is a registered trademark of Dries Buytaert.