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

 找回密码
 注册

QQ登录

只需一步,快速开始

扫一扫,微信登陆

搜索

[Drupal模块] Drupal 7.X/6.X模块介绍:Node Auto Term [NAT]自动生成Term的模块

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

Drupal的Node Auto Term (NAT) 模块是个自动生成Term的模块,将Term和Node直接联系起来,通过Node来丰富Term的内容,使得Term能够有多用途。

应用举例,如果有个商品,与商品对应的有品牌、评论、图片、说明。我们很自然的想到将品牌作为Term,但是与品牌对应的有品牌Logo,品牌说明等等相关信息,使用NAT的话,就可以使用Node与品牌相关联,来丰富品牌饿内容。

Drupal模块NAT项目网址:


http://drupal.org/project/nat


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

Node Auto Term [NAT]

Nat module configuration page

Node Auto Term or NAT is a helper module used to facilitate node-node relationships through the use of the Taxonomy module; i.e. when a node is created, a taxonomy term is also created automatically using its title and body in any associated vocabularies. Other nodes can now be tagged with terms from these vocabularies thereby establishing node-node relationships.

Node Auto Term or NAT(节点自动定期或NAT)是一个辅助模块,用于节点节点的关系,以便通过使用分类模块,即当一个节点被创建,分类来看还自动创建的标题和正文使用任何相关的词汇。现在可以被其他节点的标签,从而从这些方面建立节点节点关系的词汇。

For example, consider a site with two node types - product and image - and a vocabulary named Products which is associated with the image node type. When a NAT association is created between the product node type and the Products vocabulary, any product nodes created will automatically also trigger the creation of a term with the same title. Subsequently, when we create an image node, we can categorise the image under a term from the Products vocabulary thereby establishing a relationship between a product node and image nodes. Later on, using Views or the NAT module's API functions, we can load and display related image nodes while viewing product node.

例如,考虑两个节点类型网站 - 产品图片 - 并命名图像节点类型相关的产品的一个词汇。当一个NAT关联产品之间的节点类型和产品词汇创建,创建的任何产品的节点将自动触发创造的任期与同一个标题。随后,当我们创建了一个图像节点,我们可以分类下的一个产品词汇,从而建立一个产品节点和图像节点之间的关系的长期形象。后来,使用次数或NAT模块的API函数,我们可以加载和显示相关图片节点,同时查看产品的节点。

This module also attempts to preserve hierarchical relationships - where possible - which is useful when creating node-node relationships within the same node type. Using the above example, we could have also allowed for product-product relationships which would facilitate sub-products and so on.

此模块还试图保持层次关系 - 在可能的情况 - 这是建立在同一节点类型的节点,节点的关系时非常有用。使用上面的例子中,我们可以也允许产品,产品的关系,这将有利于子产品等。

Testers, feature requests and patches welcome :)

Initially sponsored by: Moshe Weitzman.

Maintainers

The maintainers are available for paid customisations of this and other modules as well as Drupal contract work. Please use the maintainers' contact forms to get in touch.

Project Information

Downloads


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

GMT+8, 2-21-2025 08:14 , Processed in 0.907664 second(s), 248 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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