Hi, the description of the module sounds interesting. But I fail to figure out what exactly it does and how to make it work?
I have the module installed and created an "Association" attached to all content types with criteria being Tags. Ok. But now? Where does this association show up? How can I make use of it?
What do you use the module for?
Comments
Comment #1
jfberroyer commentedHi.
There will be soon a documentation.
Once you have created and configured an association (setting criteria and weight, max number of associated nodes etc.), you can use associated_nodes_get_all($node), where $node is a node object or a nid, to get all associated nodes for all associations (or you can use associated_nodes_get($aid, $node), where $aid is an association id, to get the associated nodes for a particular association.
The module associated_links, which is part of the project, is an example of how to use those functions. If you activate this module, then you can add a block for each association. This block contains links to associated nodes on nodes pages.
I hope this will help you.
Comment #2
chasz commentedscreenshots please.
is it a list of nodes underneath the node and above the comments?
Comment #3
jfberroyer commentedNo, it's a list of nodes in a block.
Once you have installed Associated Links, go to admin/build/block
You will see a block named "Associated Links : name-of-your-association". If you have defined several associations, you will have several blocks.
You just have to put the block in the region you want. It will appear on a node page.
Maybe the module "Associated Links" should have been named "Associated Blocks"...
Comment #4
chasz commentedHow does taxonomy terms relationships work?
obviously this overrides that?
Comment #5
jfberroyer commentedI'm not sure to understand. By taxonomy terms relationships, do you mean taxonomy terms hierarchy ? If so, simply put, all terms in the hierarchy of each of the terms of a node are taken into account, and the matching score depends of the amount of terms two nodes have in common.
Comment #6
ansorg commentedhi again,
thanks for adding the documentation but I still don't get it (non native english speaker)
I started with a default Drupal-6.10 setup. I created a vocabulary "Tags" and some taxonomy terms. Then I created a few pages and stories and added "Tags" to them.
Now I enabled "Associated Nodes", "Associated Nodes Taxonomy" and "Associated links" modules. I created an association for content types page and story, max number: 10 and choose my vocabulary "Tags" as criterion (no constraints).
Finally I added the now available Block "Associated Links : Pages to story" to the right sidebar.
When I now go to "Page A" that has Tag "A" I expect to see links to some stories that also have Tag "A" in the right sidebar. But there appears nothing - not even a block header.
Where is my mistake (or misunderstanding of the module)?
Comment #7
jfberroyer commentedHi,
Have you given a weight to your taxonomy criterion ? Only nodes that matching score is positive (not nul or negative) can be taken as associated nodes.
The Associated links block will not appear if there are no associative nodes.
Comment #8
ansorg commentedThe weight!
I left it at "0". Changing this to 1 made the association working
Comment #9
jfberroyer commented