On a site with many nodes, it can be hard to remember the exact title of the one you're looking for when creating a Freelink. CCK Nodereference takes care of this by auto-completing node titles for you, but of course Drupal's autocomplete functionality only works for textfields, not textareas (e.g. body fields, where Freelinking operates).

I decided to combine the power of Freelinking and CCK Nodereference by writing this module, "Inline nodereference". Here's how it works: simply enable it, then go to edit a node, and start a Freelink like normal by typing [[. Start typing the name of any published node, and this module will fill in the rest for you. Keep typing to override the suggestion, or hit "enter" to accept it. Voila!

Obviously there's work to be done - there's no configuration settings, and I haven't tested it extensively at all. I'm also not sure whether it would be better off as its own module, or incorporated into Freelinking. Any thoughts are appreciated. Cheers!

CommentFileSizeAuthor
#2 nr_inline.tar_.gz1.59 KBdanepowell
nr_inline.tar_.gz1.56 KBdanepowell

Comments

Grayside’s picture

Sweet! I will definitely check this out once I have the FL core back on it's feet.

danepowell’s picture

StatusFileSize
new1.59 KB

Here's an updated version that takes care of some little bugs. I'd like this to eventually work with a little inline popup (like what you get with autocomplete text fields), so users can search for and select nodes, but this implementation was the easiest to code.

lunk rat’s picture

This is fantastic. I enabled it and got it to autocomplete while I typed [[

But then when I save the node it just has a plain text [[Node Title]] with no hyperlink :(

What am I doing wrong?

Thanks for sharing your module!

danepowell’s picture

Sounds like a problem with your input format or freelinking configuration, not so much the inline autocomplete function.

chrism2671’s picture

Is this committed to -dev?

The Lloyd’s picture

Just curious if there has been any further development on this project. I have tried to use it along with 6.x3.x-dev, but I believe that version of freelinking is unstable, and I have not been able to get it to work. This is the exact 'inline node-reference' functionality I have been seeking....

danepowell’s picture

I have not had the time/resources to develop it any further, sorry.

juampynr’s picture

Status: Active » Postponed (maintainer needs more info)

Does anyone still needs support for this issue? Please do let me know with an update status if needed.

BrilliantMkting’s picture

Priority: Normal » Minor

This feature is amazing, Keep up the good work! :)

gisle’s picture

Issue summary: View changes
Status: Postponed (maintainer needs more info) » Closed (won't fix)

Minor feature, and no progress in three years. Time to close.