hi

how do i get a text within a node to be linked based on a set of predefined keywords ?

for example i define 'brown' as a keyword and i define that whenever someone clicks on the word 'brown', drupal will do a search for the word 'brown'. so, whenever the word 'brown' appears in my story / page / feed nodes it gets linked to search for the word 'brown'.

Comments

paddy_deburca’s picture

You could start by looking at the glossary module http://drupal.org/project/glossary.

Paddy.

http://deburca.org, and http://amadain.net

rajaiskandarshah’s picture

thanks. the auto link works using the glossary module. but still need to find a way so that when user clicks on the glossary term, drupal will search for the term.

Raja Iskandar Shah
Consulting for Malaysian Business
www.norazilaco.biz

max.dk’s picture

I need this module verymuch,too.

Claudia3889-1’s picture

Someone resolve this problem? It's very important for my job :(

vsr’s picture

http://drupal.org/project/alinks

Just make the destination your search page with the query being your keyword.

Hope this help you.

Ivo.Radulovski’s picture

Have a look at the Glossify Internal Links Auto SEO Module. A promising release is awaited this month 11/2009.

ilw’s picture

What about adding simple input filter? It's can render the node and insert the links I think.

jordojuice’s picture

I am currently developing a module that does exactly this. It is going through the review process for full application status now and I expect it will have a stable release next month. I would be interested in any suggestions or feature requests you might have while the module is still in development. Some of it's features are currently undergoing changes and now would be the time to implement new features. If you would like be make a feature request please submit an issue in the queue on the sandbox project page. http://drupal.org/sandbox/jordojuice/1143784
Currently, the module allows site administrators to define keywords to convert to links and associated with each keyword is content type(s), an inline style, class, and target. Administrators can limit automatic link generation to certain content types. When a node is saved the module searches it's text and replaces found keywords with links directing users to the specified path. The development version supports both internal Drupal paths and external urls, clean and unclean urls, as well. I plan on developing addon modules that support taxonomy term linking, and now I like the idea from this post of linking to search results and certainly think that would be a great feature to add. As I said, this module is still in it's infancy and there is much that can be added, so any other suggestions or requests would be greatly appreciated.

mcfilms’s picture

Wow! It looks like you have thought this module through pretty thoroughly. I was going to suggest supporting taxonomy term linking. But I see you have already thought of it. And doing it as an add-on will not prevent you from releasing the core module.

I looked around and saw nothing similar. Great idea and I hope the project page is approved soon.

A list of some of the Drupal sites I have designed and/or developed can be viewed at motioncity.com

soulfroys’s picture

I need this too!

jordojuice’s picture

Thank you for all your support. The application review is in 'needs work' right now but it should be moving along tomorrow after I work out a final bug. Since application reviews take around a month right now, I took this opportunity to add some features to the module. It has a much better process for generating links. The links overview form has filters and bulk operations for managing links. I added global and default settings so the number of links generated on a single node can be limited, prevent nodes from linking to themselves, require case sensitivity etc. The default settings are used for new bulk operations. You can generate link definitions in bulk from node titles on the content overview form. All links have the 'autolink' class so the module can find and update or remove them when link definitions are updated or removed or when the module is uninstalled. Also, link definitions can have a status of disabled or active, and individual link definitions can be applied to specific content types. Links can also be defined in a comma separated list of keywords on the node edit form.
Currently, the search link module is not fully developed and tested. I've been spending all my time working out a crazy bug that makes no sense to me, but it isn't a critical bug just annoying for the user experience. I would still expect that all three modules will be developed and tested at the beginning of next month, and the application review process is going well. There have been no security or duplication issues and the only problem was a very minor code issue. I will post back here if and when the module is approved and I'm able to get a stable version up and running.

jordojuice’s picture

The module I think is now feature complete and is undergoing extensive testing. Because if the nature of the module and the process by which it places links (it edits node bodies before save), my primary concern is that some obscure set of circumstances might result in data loss during the link generation process. Because of this the module cannot yet be considered stable, though it may already be there. But I would be almost too happy to provide a development version of Autolink if anyone else is willing to test the module in a safe environment. I would love feedback on the interface or any more chance at discovering bugs. Aside from that, I expect that I will be confident in calling the module "stable" in the coming days and can make the module available through means other than d.o. and git.

jordojuice’s picture

There is now a development version of Autolink available for testing. Please see #1167312: Autolink 6.x-1.0-beta1 for the zip file and see my post at the end of this thread http://drupal.org/node/1165330 for more information on using the module and providing feedback. For further details on how to use the modules see the README.txt file.

I appreciate any test cases that can be provided and will gladly give credit on the project page for any beneficial work.

jordojuice’s picture

The module has continued to go through drastic changes but the development is finally slowing down. I expect that the review will be complete in the next week and the module will be released on time. I have added many unique features to the module package, including much easier methods of defining links, a new system of grouping links (like taxonomy vocabularies) to make them easier to apply by content type and manage, automatic link generation from node titles, user names, and taxonomy terms (all optional), Token support for building link titles based on the attributes of the node or user being linked to, blocks for displaying links related to a node instead of in content links (either method can be enabled by link group), a CCK field for displaying links related to a node (also ith Token integration), tabs on the node page for viewing links related to a node (both incoming and outgoing), user and node operations for generating links from node titles or user names in bulk, and a configurable method of calculating the relevance of an individual keyword to any given node (this is used to prioritize the generation of links and display of links in node content, blocks, and CCK fields; calculations are based on a number of factors with configurable weights).

So, with this development there has been a lot of features added and the only problem I have is that it is a lot to test. I can't in all good conscience release a "stable" release without testing, so if anyone wants to try to module please say so and we can work out any bugs I might have missed. I'm confident that the module is passed any data loss issues and any such critical bugs have been worked out.

jordojuice’s picture

I have a beta version of the module released at http://drupal.org/project/autolink

shamio’s picture

In Autolink module page, i see that
This project has been abandoned in favor of other Drupal automated linking solutions..
What is Drupal automated linking solutions and where can i download and get it? I need to link to fixed keywords in all nodes but Autolink project is stopped. I want to have this feature for Drupal 7. Please help me to find a module does it.

mcfilms’s picture

Yeah that's too bad. I wonder if the D7 version of http://drupal.org/project/alinks will work for you. Seems like the developer was really looking for testers and feedback 5 months ago.

A list of some of the Drupal sites I have designed and/or developed can be viewed at motioncity.com

shamio’s picture

The available version of Alinks doesn't work fine with my website and also as i don't want my website to face working problems, i don't like to install it to. I'd like that a final version of this module was available and the maintainer didn't stop this project. I hope another similar module to be written in the close future.

greg boggs’s picture

I'm maintaining the Alinks module and I have fixed the bugs in the Drupal 7 version and added a similar modules list to the Alinks description.