I would like to contribute some major changes to this module, attached to this issue you will find a patch for the current version (6.x-1.x-dev 2010-Jul-11) as well as an archive with the patched module included for convenience.

A dependency to the core upload module is introduced (for the importing features) and running update.php is required.

Changes include:
- keyword groups, these work by linking the first found keyword from a group and skipping the rest
- keyword weights inside groups as well as group weights, easy drag and drop handles to manage them
- several keyword linking limits, like maximum links per page, per paragraph, or with the same keyword per page and per paragraph, allow or disallow linking inside lists (ol, ul) or headings (h1, h2.. h6)
- allow or disallow linking to the same page the keyword is on
- allow or disallow linking inside node teasers, search results, RSS feeds, CCK text fields, Views node body and teaser fields, and CCK fields inside Views, filtering by view names, filter by content types
- ability to automatically set the link title (if left empty) based on the title of the target page (and being page_title aware)
- new mass-editing interface to edit all keywords on one page
- detect adding duplicate keywords and provide a verbose error message listing the conflicting keyword ID
- export or import (replace or append) the keywords list
- ability to exclude pages from linking by specifying the visible URL (and importing/exporting this list)
- it will leave the linked text untouched, explicitly not making changes in the case of the keyword on the page (for eg. the -dev version when configured to ignore case on a keyword "example, will replace "ExAmPLe" inside page text with "example" from the keywords list page, this has been fixed)
- for a keyword like "example" it will not link the keyword inside a text like "example's etc", aware of logical word boundaries
- it has been tested to work good (speed wise) with ~500 keywords

You can see this module in action on the ChooseWhat.com website.

This has been sponsored by ChooseWhat LLC, and contributed back to the Drupal community in the spirit of open source and sharing. If you accept this patch into the module, we would appreciate it if you can post a link on the front page mentioning this and having this text:
ChooseWhat.com a website geared towards internet business solutions.

Thank you! hope you find this useful, and let me know if you need further assistance from me to integrate the patch

Comments

tsenauskas’s picture

tsenauskas’s picture

zazinteractive’s picture

Thanks, i'm going to try it out

deLisle’s picture

Excellent improvement. Just what this module needed!

ezrabutler’s picture

Category: feature » support

Amazing update -- but one question -

I kind of actually do not want the logical word boundaries, because they exclude any word next to a period or comma.

How would I turn that part off?

Thanks,

Ezra

js_kiran’s picture

Does this work for cck text areas? Though the UI shows selection of content types, I could not get it to work for a cck text area on a custom content type. The links do not show in the node.

khosman’s picture

Component: Code » Documentation

I'm having a bit of trouble fitting this puzzle together:

1) Above, it mentions "the current version" is "6.x-1.x-dev 2010-Jul-11." Does this update also work on today's current version, dated 2011-Feb25 - ?
2) Where do I place the update? Does it go into the Keyword Link module folder - or at a different level?
3) Do I place the folder (marked "keyword_link-updates.tar_") or the file (marked "keyword_link-updates.tar_") into the site in order to facilitate the update - ?

I know this is some simple stuff - but I couldn't find documentation anywhere online describing how to update a module using an updating file.

zazinteractive’s picture

To read more about patches: http://drupal.org/node/707484
How to apply patches? http://drupal.org/node/707484

You can also apply patches manually by adding lines starting with a + sign and removing lines starting with a - sign in the files specified

khosman’s picture

Using the patch file attached at the top of this thread - and keyword_link version marked and dated "6.x-1.x-dev 2011-Feb-25" brings about a handful of balks from the git patching I'm attempting. Several admonishments mention "trailing whitespace." The final advisory says "fatal: corrupt patch at line 3161," for instance. Could this be happening because the current version of keyword link doesn't match the version used by/for the patch?

Bill Choy’s picture

StatusFileSize
new956 bytes
Prancz_Adam’s picture

Category: support » bug
Status: Needs review » Needs work

I have tested this patch on Drupal 6.25 and it is working fine! Thanks for it!
Everything is ok except the special characters issue at the keywords starts and ends.

For example this word is not replaced "túró" but "túro" is working fine.

alliax’s picture

Does the current DEV version (2011-Feb-25) include all those major improvements, or should I rather use the archive in this issue thread?