This may be more than a feature request but it would be great if the functionality of this module could be integrated into a wysiwyg editor. Basically, there would be a button which would open the search box and you'll start typing. When you find the node you are searching for, clicking it would add it's link into the text field. I'm not sure if this is possible and how much time and effort it would require but nevertheless it would be a great feature.

Comments

danielb’s picture

Status: Active » Closed (works as designed)

I don't think this module is a good starting point to solve your problem. I would use nodereference and a either a really good node template or some way to insert the references via tokens into your content (which may require custom work).

drupaloSa’s picture

Thanks for the reply. I want to provide my users an easy way to reference other nodes within comments or nodes they are writing. I mean i don't want these references to be seperate CCK fields, they need to be inline. So neither nodereference nor token solve my problem. I thought that since the search functionality is already implemented in this module, it would be a matter of porting it to a button code.

Usage example: I had to go to google search for finding the link to token module, and then c/p it to the text area and added <a> tag. However, something like this could be done easily using the node finder.

danielb’s picture

Yeah but for referencing nodes, 'nodereference' really has the same 'search' functionality - plus it comes with functions to display/theme the link or teaser properly. Of course the problem is that you can't mix it with content, but if we're going to start writing modules to insert values into the wysiwyg, I would love to make it use the CCK widgets, so anything that can be inserted into a node, can be inserted into the wysiwyg.
It's a great idea, but I don't know anything about wysiwyg buttons.
What wysiwyg do you use? I'm on Tiny MCE in 5 and Tiny Tiny MCE in 6.

drupaloSa’s picture

There is a TinyMCE plugin module named Link to Content which might give you a better idea. Using this module, when you click on the button, a popup window opens and you are able to browse nodes through taxonomy. The problem with this module is that it's not yet ported to 6.x and also it doesn't have a search function (browsing only). I guess i'll eventually end up using this module when it's ported to 6.x. Btw, I usually prefer bueditor, it's much simpler.