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!
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | nr_inline.tar_.gz | 1.59 KB | danepowell |
| nr_inline.tar_.gz | 1.56 KB | danepowell |
Comments
Comment #1
Grayside commentedSweet! I will definitely check this out once I have the FL core back on it's feet.
Comment #2
danepowell commentedHere'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.
Comment #3
lunk rat commentedThis 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!
Comment #4
danepowell commentedSounds like a problem with your input format or freelinking configuration, not so much the inline autocomplete function.
Comment #5
chrism2671 commentedIs this committed to -dev?
Comment #6
The Lloyd commentedJust 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....
Comment #7
danepowell commentedI have not had the time/resources to develop it any further, sorry.
Comment #8
juampynr commentedDoes anyone still needs support for this issue? Please do let me know with an update status if needed.
Comment #9
BrilliantMkting commentedThis feature is amazing, Keep up the good work! :)
Comment #10
gisleMinor feature, and no progress in three years. Time to close.