开发者

Drupal: Additional attributes for taxonomy terms

开发者 https://www.devze.com 2023-02-06 08:46 出处:网络
I need to assign dynamic attributes (like entity types) to a custom content type thatcreated. Those entity types have a name and 2 additional attributes. I\'ve not seen a way to assign additional attr

I need to assign dynamic attributes (like entity types) to a custom content type that created. Those entity types have a name and 2 additional attributes. I've not seen a way to assign additional attributes to a taxonomy term, so I think I shoud use a CCK field and make a reference to it in my main CCK, is it true? I thought that this was a typical use-case for a t开发者_JAVA百科axonomy but if I cannot add attributes they are not so useful to me.


You could use the Node Auto Term module (or one of the several alternatives, NAT just looks most developed), which (effectively) turns taxonomy terms into nodes, and vocabs into content types. This means you can add fields to the content type using CCK, and effectively add attributes to your terms.

Note that this module (and the others that perform the same function) just enforces relationships between a vocab and a content type, and terms for that vocab and nodes of that type.

You can actually achieve the same thing without a module if you don't need automation or enforcement - just create one node per term, tagged with that term, and pull that node into views to access the fields.

0

精彩评论

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

关注公众号