国外设计欣赏网站 - DOOOOR.com

 找回密码
 注册

QQ登录

只需一步,快速开始

扫一扫,微信登陆

搜索

[Drupal模块] Drupal 7.X/6.X模块介绍:Similar By Terms相关文章/文章数目模块

[复制链接]
发表于 4-14-2012 00:29 | 显示全部楼层 |阅读模式

在Wordpress中有个功能就是相关文章(Related Posts),这个在Drupal中如何实现呢?其实也很简单,Drupal有Similar By Terms模块。有了这个模块,在Drupal中可以很容易的创建相关文章区块,然后在你的主题下面启用这个模块就可以了。

Similar By Terms主要功能:

  • 根据在同一Vocabulary标签(terms/tags)选择相关文章
  • 可以选择相关文章的节点类型(node content type)
  • 可以根据排除指定标签,只选择属于其他标签的文章
  • 可以指定相关文章数目

Similar By Terms下载链接:

Similar By Terms区块设置页面截图:

Drupal模块:Similar By Terms


本文选自:东华博客,谢谢!



---------------------------------------------------------------------------------------------------------

Similar By Terms

What does this really mean? How should you use this module?

1) Create a freetagging vocabulary called "Tags" assigned to the content types on which you'd like to display the "Similar" block.
2) Enable the block called "Similar entries from the Tags vocabulary".
3) Add keyword tags to the content.

Done!

Now when you go to the page for a tagged content item, a block will show up displaying other content in descending order of common tags (terms).

You may be interested in comparison shopping: Comparison of Similar / Relevant by term block modules..

Similar By Terms 2

Similar By Terms 2 is a complete rewrite of Similar By Terms as a Views plug-in. It offers much more flexibility than the original version. The module provides a default view which exposes a block which should function exactly the same as Similar By Terms 1. However, Views can be customized or cloned to add different fields, filters, output formats, or any of the good stuff we've come to expect from Views.

Find complete documentation for Similar By Terms 2 in the README file or visit the GitHub repository to read it online.

Before upgrading from Similar By Terms 1 (SBT1) to Similar By Terms 2 (SBT2) please read the upgrade instructions. Since the versions are so different, you will need to enable and configure the SBT2 blocks manually after upgrading. If you are familiar with Views, this is a very easy process.

Similar By Terms Drupal 7.x-1.x

7.x-1.x is based on Similar By Terms 6.x-1.x branch and not the 2.x branch so no views support. Sorry I started the 7.x branch before Jeff started working on the 2.x branch. 7.x-2.x will be views based and based on Similar By Terms 2.

Beta 1 is released this is the 1st version that I have trusted on my production sites. It still needs some testing but I haven't had any issues running it on my production sites.

Issues

As with all contributed modules, when considering submitting an issue:

  1. Clear the Similar by Terms Cache.
  2. Read the documentation (two or three times is better).
  3. Review the existing issues list. (Don't forget to select "<all>" for the "Status" field.)
  4. Gather all the appropriate information. This may include (but is not limited to):
  • Drupal version.
  • Browser type and version.
  • Database type and version.
  • Error messages, if any.
  • Module settings.
  • Submit the issue. If other modules are involved, you may need to submit the issue to those modules as well.
  • PHP 4 and MySql 4

    Due to end-of-life on PHP4 and MySql4, we no longer actively support either of those products. If a problem arises, we will make an effort to work around it, but will not make a guarantee. Drupal 7 will require PHP 5.2.5 or higher and MySql 5 (or Postgres 8); if your host is not at these levels yet, please encourage them to get there ASAP.

    The module was originally created by Jeff Robbins and sponsored by Lullabot.

    Downloads

    |2011-2026-版权声明|平台(网站)公约|DOOOOR 设计网 ( 吉ICP备2022003869号 )

    GMT+8, 2-19-2025 13:59 , Processed in 0.475365 second(s), 54 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2021, Tencent Cloud.

    快速回复 返回顶部 返回列表