果园分类术语变体 [英] Orchard Taxonomy Terms variations

查看:36
本文介绍了果园分类术语变体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从 Orchard CMS 的分类模块中的术语制作各种类型的最佳方法是什么,以便第一级只能包含type1,第二级只能包含type2,依此类推?所以它看起来像真正的物种分类.

What is the best way to make various types from Terms in the Taxonomy Module of Orchard CMS, so that the first level can contain only type1, the second level can contain only type2 and so on? So it would look like real taxonomy of Species.

示例:

  • 订单 1
    • Family1
      • Genera1
        • 物种1
        • Genera2
          • 物种 2
          • 物种3

          其中 Order1、Order2 是具有唯一属性集的 Order 类型;Family1、Family2 属于具有唯一属性集等的 Family 类型.

          Where Order1, Order2 are of type Order with unique set of attributes; Family1, Family2 are of type Family with unique set of attributes and so on.

          我想创建单独的 ContentPart 来表示属性和类型集,并将其添加到由分类模块为分类词汇创建的 ContentType.所以会有 TaxonomyTypeRecord、TaxonomyTermAttributeTypeRecord(与类型相关联)和 TaxonomyTermAttributeRecord(与属性类型相关联).之后,这组属性对于词条路径将是唯一的.

          I thought about creating separate ContentPart that would represent the set of attributes and type and add it to ContentType that is created by Taxonomy Module for the vocabulary of a taxonomy. So there would be TaxonomyTypeRecord, TaxonomyTermAttributeTypeRecord (linked with the type) and TaxonomyTermAttributeRecord (linked with the attribute type). After that the set of attributes would be unique for pathes of terms.

          这是我上一个问题的延续.

          更新:这是一个图表:

          分类术语 0..1 — 0..* 分类术语属性

          Taxonomy term 0..1 — 0..* Taxonomy term attribute

          分类术语属性 0..* — 1..1 分类术语属性类型(这里有可能的属性类型,例如居民、表格数量等)

          Taxonomy term attribute 0..* — 1..1 Taxonomy term attribute type (here are possible types of Attributes, e.g. habitant, # of forms etc.)

          分类术语属性类型 0..* — 1..1 分类术语类型(或等级,例如物种、目、科、属)

          Taxonomy term attribute type 0..* — 1..1 Taxonomy term type (or rank, e.g. Species, Order, Family, Genera)

          这些实体将是新 ContentPart(例如 TaxonomyTermTypeContentPart)的 ContentPartRecords,将添加到由 TaxonomyService.CreateTermContentType() 中的 Taxonomy 模块创建的分类 ContentType.

          Those entities would be ContentPartRecords for a new ContentPart (say TaxonomyTermTypeContentPart) that would be added to the taxonomy ContentType created by Taxonomy module in TaxonomyService.CreateTermContentType().

          推荐答案

          您不能:每个分类法只有一种类型的术语.但我不确定我看到了这个场景.

          You can't: there is only one type of term per taxonomy. But I'm not sure I see the scenario.

          这篇关于果园分类术语变体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆