Hi everybody,
First of all, thanks a lot for this very useful module. It simplified the lives of content editors so much.
However for now most of our content is still unpublished because we want to be sure every page is ready before publishing it and replacing our old pages by new ones. It would be cool to have an option to allow Linkit to show unpublished content as well.
I did it manually by editing the linkit_node.module file, changing this line:
$result = db_query_range(db_rewrite_sql("SELECT n.title, n.nid FROM {node} n WHERE LOWER(n.title) LIKE LOWER('%%%s%%') AND n.status = 1"), $string, 0, 10);
I removed the AND n.status = 1 part.
Another good feature, unrelated but a small feature also, would be to show the Content type next to the node result. Right now we see something like "Title [type:Node]", it would be cool to have something like "Title [type:Node:News Story]" or maybe another way to display it, but having this information would certainly help picking the right node.
Could this be done easily?
Thanks a lot.
Blaiz
Comments
Comment #1
blaiz commentedOh and I thought of other features which would be great, but more difficult to do.
It could be great to have the link in this form
Title [path:internal:node/1]also when we edit the link, and not just when we add it, like the CCK nodereference autocomplete fields do.Another great feature would be to automatically paste the selected text and perform a search on it. For example, if I select the terms "North Beach" in my text, it would be great that when I click on the linkit button, "North Beach" is already typed in the text box and shows me the results.
Those features would be great but I guess this would be much more difficult to implement.
Please tell me what you think of this.
Thanks,
Blaiz
Comment #2
anonA settings to enable to show unpublished content would be nice, indeed.
About the Content type, this would also be a good feature.
I will take a look at CCK nodereference.
"automatically paste the selected text and perform a search on it" Also a very cool feature, but I think this can wait.
Thanks for you feedback.
Comment #3
anonCommited, this feature will be able in 6.x-1.4 release
Comment #4
blaiz commentedOh wow, that was fast!
Thanks
Comment #5
anonThe commit includes settings for administrators to define what the node results should contain.
- nid
- content type
- status
- unpublished nodes (included in the normal result if checked)
Comment #6
anonRegarding:
"It could be great to have the link in this form Title [path:internal:node/1] also when we edit the link, and not just when we add it, like the CCK nodereference autocomplete fields do."
I have created a new issue for this #831688: Title [path:internal:node/1] also when we edit the link