I'm trying to link a glossary term to all the nodes in which that term was mentioned. The link (or links) should be placed in the definition of the term itself. I guess it's a combination with some kind of enhanced search module. Is there any chance of making such kind of functionality?

Comments

nancydru’s picture

Well, if the terms are actually tagged with the term (which I discourage), then "see detailed description" will be a "taxonomy/term/xxx" link to those nodes. Some users have then used the Taxonomy Redirect module to do what you want.

This request is making me rethink http://drupal.org/node/209515. Perhaps what you want is more like a list of the nodes that are found.

wH1spEr’s picture

Not exactly. I want a list pages, bookpages and stories, which contain the glossary term. For example now I have the glossary term "option" and I have highlighted "option" in every bookpage/page/story. But I need smth like a report of the usage of "option" in all the pages/bookpages/stories in the site, like:

*****
option - blablablabla term definition blabal
Pages containing this term:
result1
result2
and so on
*****

Unfortunately I can't figure out how will taxonomy redirect module do all this job...

nancydru’s picture

I don't use TR either, so I'm no help there.

So, what you want is something like a link to search on the term? If they were tagged with the term, it would be easy to do, because we actually do a query for tagged nodes already.

jscoble’s picture

*I don't use these modules so I probably shouldn't be commenting...

It seems to me that the type of functionality you are looking for is best done with a search engine like Lucene. This is because extracting this kind of data from the database would exert a very heavy load on your DB server and this is not the type of things that DBs excel at, even though the major engines have beem making strides in this area.

Search engines are built to tokenize the text and structure the data in a manner that makes it easy to search accurately and quickly. They also do things like support stemming, removal of stopwords, like 'a'. 'an', etc. There are a lot of other things that the better search engines will support, but those are the basics.

There are a bunch of search modules available for Drupal including ones that integate with Lucene, among other search engines.

It may take some customization to link this up with your glossary to accomplish what you want, but you do not want to use the DB for your use case. Or at least I wouldn't recommend it.

wH1spEr’s picture

10x, I'll try it right away.

nancydru’s picture

Status: Active » Postponed (maintainer needs more info)

Please update this issue when you have some results.

nancydru’s picture

Assigned: Unassigned » nancydru
Status: Postponed (maintainer needs more info) » Fixed

See if the latest fix does what you need. There is a link next to the term name to invoke a search (assuming you have search enabled).

nancydru’s picture

Status: Fixed » Closed (fixed)
wH1spEr’s picture

I've just checked out the new version - it's totally awesome, thank you for the improvements - it's fantastic and it has the option I needed. You rock :D