By Doctor-1 on
Does anyone know of a module where you can specify a word and each time that word is found in a node, link it to another node?
I've tried the Glossify module but that doesn't appear to do what I need.
Does anyone know of a module where you can specify a word and each time that word is found in a node, link it to another node?
I've tried the Glossify module but that doesn't appear to do what I need.
Comments
Glossary
Hi,
I think the Glossary module might help you:
http://drupal.org/project/glossary
@ivarvd Just to be clear, the
@ivarvd
Just to be clear, the Glossary module and the Autolink package are quite different in their goals and approach. Autolink does not link to a glossary page at all. Rather, it searches node content for predefined keywords and turns those keywords into links to a specific url. This means that all keywords or key phrases must be unique, otherwise the module would have no way of deciding which url a keyword is supposed to link to. Where the links direct users is entirely dependent upon how that individual link definition was set up. Link urls can include internal Drupal paths, normal or aliased, or external urls. It also provides an interface for creating links that will direct users to search results or taxonomy term pages.
I haven't used the Glossary module so maybe I'm way off base anyways but I will try it out. But from what I have read it seems the two are quite different. Autolink aims to provide better navigation between nodes while Glossary seems to be more of a learning tool, at least that's how they advertise it. I expect that the Autolink package may even be ready for testing tomorrow, so I am looking forward to showing it to you to get some input, especially considering that you have used related modules.
As for the features, the first one (preventing nodes from linking to themselves) has already been implemented along with others. The module provides a whole settings page for increased control over link generation. I look forward to getting you into it! I think you might have some good feedback to give.
Autolink
Hey,
I was just searching Drupal and found this question. I am the developer of the Autolink module, a new module which will provide an interface for defining keywords to convert into links. It will support linking to nodes, external urls, taxonomy term pages, and search results.
Currently, the module is going through the review process and if approved will be hosted on drupal.org some time next month. I'm on my Palm right now, but when I get back to a computer I will post the link to the project application and project page so you can follow the review process and see the features. Please feel free to make any feature requests before the first version is released.
Autolink
@doctor
Here is the Autolink project page: http://drupal.org/sandbox/jordojuice/1143784
And here is the project application: http://drupal.org/node/1144302
As I said, if there are any features you think I may have missed that could improve the package, please post an issue in the Autolink issue queue. Also, if you have a test environment and would like to or be willing to do some testing I would be glad to offer you the latest version of the module. The quicker any obscure bugs are worked out the sooner a stable version can be released.
Edit: as I'm working on the module tonight, doing final testing, I'm realizing that it can probably be considered stable in the next couple of days. While I am weeding out small bugs, my biggest concern is that an obscure set of circumstances may cause the link placements to fail while node bodies are being edited by the module. This could result in the loss of data, which would be a critical error. So the only reason I'm not ready to call the module stable is because of a lack of extensive testing. I don't want my module to be a data thief that's all. But still, if you want to use the module I can have it up in my project issue queue in the next couple of days.
@jordojuiceI'm pretty sure
I'm pretty sure your module is what I'm looking for and would be willing to test it - I'm in the middle of setting up a new site so if something does happen to go wrong it won't matter at all.
Glossary is good but not what I'm after - It is placing a link next to the terms I've set up but it links to the taxonomy term page and I really need it to link to a node. Plus I would prefer it to link the term itself rather than have an icon next to it.
Great!
That is great!
I just so happened to finish putting together an alpha version tonight. Admittedly I was up all night working on it, but I finally posted a zip file in my issue queue at #1167312: Autolink 6.x-1.0-beta1. You'll have to download the AHAH Helper module (http://drupal.org/project/ahah_helper) and the simplehtmldom API (http://drupal.org/project/simplehtmldom) as they are dependencies of the 6.x version. AHAH Helper will be removed in 7.x but simplehtmldom will remain as it is the core of the module and is a great library.
To start you will want to enable the Autolink API first and then enable the Autolink Links module. Autolink Links provides standard links to internal Drupal paths or external urls. All modules follow the settings that are found at administer >> settings >> autolink >> settings. To create new link definitions just visit the links overview form at administer >> settings >> autolink and click 'Add link'. Links can also be defined in a comma separated keywords list from the node edit form under the 'Automatic link generation' fieldset. This is similar to tagging, but the keywords that you define will link to the node that is being edited. When editing a node it will display a comma separated list of keywords that link to that node as well, even if they weren't defined from the node edit form. Removing any of these keywords will delete the link definition, so it makes for an easy way to manage links on the fly. Also, check out the bulk operations that are available at administer >> content management >> content. You can generate node definitions from titles or generate links on existing nodes.
Remember that default settings from the settings page will apply to bulk generated link definitions as well as automatically populate new link definition forms. So if you bulk generate link definitions from node titles or define new links from the node edit form they will each gain the default settings.
Be sure to post any bugs you might find in the project issue queue at the above link. Even better, post a review of the module and what you think could use improvement if possible. If all goes well and the module gains usability or stability out of your input I will gladly give you credit on the project page.
Honestly, based on my own testing I see nearly no chance of data loss as I haven't seen any myself since the latest bugs have been worked out. I am just overly cautious because of the nature of the module, but I'm pretty confident that it will work as intended especially when it comes to the core functionality of placing and removing links. Administrative forms have been the biggest problem with bugs, really.
Thank you much for the help!
Drupal 7
Looking for same but for version 7?
I will be porting this to D7
I will be porting this to D7 hopefully this week if all goes well. A lot of the core API functions that the 6.x version uses have been deprecated in Drupal 7, and the use of AHAH is a lot different, so it will take some time. But I certainly plan on having it ready before any 6.x version is released.
While porting the module to
While porting the module to D7, I found a critical bug with a dependency module that appears to be unmaintained. However, I plan to appeal to the webmasters to allow me to take over that module if it's maintainer does not show up to patch the bug. Obviously, I can't require my module's users to patch it themselves. But after that is fixed the port should not be much of a problem.
Almost there
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.
The application review
The application review process is long these days, but a beta release of the module is now available at http://drupal.org/project/autolink
Alinks module
I found this Alinks module after reading this post, so thought I'd come back and post this ... It does what the original poster asked for and I also wanted. I then later found Word Link and decided to go with that for my use case.
I've often called Google "gods homepage", now I call chatgpt "conversations with God."
I am always interested in paid work... Contact me through Online Business Builders