You are here

Drupal 高级分类区块(Advanced Taxonomy Blocks ) 模块

g089h515r806 的头像
Submitted by g089h515r806 on 星期二, 2010-02-23 06:13

     高级分类区块,利用了JQuery menu模块,来为单层级的词汇表创建高度定制化的区块.这个模块可能和分类菜单模块很相似,但是如果你用了这个模块,你会发现,这个模块实际上和分类菜单模块有着本质的区别.

       分类菜单模块,是直接将分类术语转化为了Drupal菜单系统中的菜单,而高级分类区块没有使用Drupal核心的菜单机制,因此高级分类区块更灵活一点.这个模块自带了两个默认的区块:
       一个区块,默认显示所有的启用了的词汇表(这个可以定制成只显示特定的词汇表),还有一个论坛区块(我们知道论坛也是建立在分类基础之上的,所以我提前实现了这个特性).
除了两个默认的区快以外,还可以创建新的区块,这里可以控制包含哪些词汇表,以及使用的路经模式(可以使用令牌,比如taxonomy/term/%tid) .通过使用路径模块,你就可以使用同一个词汇表,来创建具有不同链接的区块了.还有你可以设置是否显示术语的节点个数,甚至可以配置特定节点类型的节点数.
       高级分类区块,只用于单层级的词汇表,对于多层级的词汇表,也就是一个术语有多个父术语,这个模块不适用.这个模块依赖于JQuery menu和核心的分类模块.
本文当由http://www.thinkindrupal.com汉化
 
 
Advanced Taxonomy Blocks makes use of the JQuery menu module to create extremely customizable blocks for browsing through single hierarchy taxonomies. Though the taxonomy menu module does something similar, if you use this module you will see that they are in fact entirely different in their approach.
 
Unlike taxonomy menu which directly ties the menus into the Drupal menu system, Advanced Taxonomy Blocks doesn't touch the menu system at all and therefore allows much more flexibility. This module ships with two default blocks: A block with all of the enabled vocabularies displayed by default (this can be customized to show only certain vocabularies) and a Forum block (I went ahead and threw this in since forums are built with taxonomy).
 
In addition to the two default blocks new blocks can be created with total control over which vocabularies are included, the path patterns (using pseudo tokens such as taxonomy/term/%tid ) that will be used (set per vocabulary per block) and much more. The beauty of being able to control the path in such a fine tuned manner is that you can create multiple blocks using the same vocabulary that send the links to different views (which would in turn receive the tid as an argument). You can also set each vocabulary within the block to show either a node count for all content types, or for only one particular content type, or no count at all.
 
Advanced Taxonomy Blocks is designed to work with single hierarchy taxonomies, which is to say that if terms have more than one parent I don't know how it will display (I have never tried it).
Dependencies: JQuery menu module Version 1.8 or higher, Core taxonomy module.
 
**** IMPORTANT ***********************************************************************
Anyone upgrading to any version lower than 2.0 needs to visit update.php as there has been a table alteration.
The 2.4 + Release has several new features including:
  • A whole new set of tokens that can be inserted into the path pattern such as %termname, %vocabname, %vid, %nid, %useruid, %nodeuid, %nodetype and even a %arg() token which operates just like the arg() function. So for example you could add argument 1 to you path by using %arg(1).
  • The forum block now works in a much more practical way.
  • The 2x branch in general has more options for chosing how nodes are counted and how links are displayed in relation to nodes that have been tagged with the term itself or a child term.
The 2x branch should be considered a beta release. If there are no major issues reported in a week or so I will set it as the recommended release
*************************************************************************************
 

Drupal版本: