1
votes

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.

Example:

  • Order1
    • Family1
      • Genera1
        • Species1
    • Family2
      • Genera2
        • Species2
      • Genera3
        • SPecies3
  • Order2
  • (and more)

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.

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.

That is the continuation of my previous question.


UPDATE: Here is a diagram:

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

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

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

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().

1

1 Answers

1
votes

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