开发者

Drupal set related nodes while creating new node

Is there any module which list the related nodes based on the title and body at the time of creating new node, So that the user can set multiple related node.

And there is a block on the node page which list the set of selected related links

Any Help,

开发者_C百科

Thanks, Edvin :)


You can do that using http://api.drupal.org/api/drupal/modules--node--node.api.php/function/hook_node_submit/7


Most direct answer to your question:

What you are asking, in order to do this task well, requires very smart, semantically-aware programming - i.e., a LOT of complicated code. There is the Similar Entries Module - I haven't tried this, so don't know how good a job it does. Very likely, it will only match similar words, and articles with words that simple programming identifies as similar are not always actually about similar content. So: it will work, but it won't be matching very "intelligently."

However, you could also consider:

1. There are available module-integrated webservices, such as Calais, which can help you show other sites' content that's related - but not your own - and do the semantic comparison in a sophisticated and language-aware manner.

2. Probably the best way to assure that articles which are similar in content is to classify what your articles are about yourself by using a taxonomy vocabulary. You could then make sure that the taxonomy term is put in the url with Pathauto, and use this part of the url as an argument in Views to select articles with the same taxonomy term. This view could then be displayed as a block, or embedded somewhere in your article template.

3. If you get really picky and decide that for each article you want to manually decide which other articles it's related to - you could add a multiple-set of CCK node reference fields to your article node, and simply display these.


I found the drupal module and did some customization,

Here you go sure it will help you guys, Node Recommendation

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜