Forums / General / A question about content organization

A question about content organization

Author Message

Alejandro Dominguez

Thursday 05 May 2011 5:57:44 am

A section of my eZ Publish Site is a "museum" with the description of animals, surgical material and other things.

I have to classify the animals based on several criteria such as vertebrates (mammals, birds) , invertebrates. For the birds I have 14 possible families ( Podicipediformes, Pelecaniformes, ...)

What is the best way to model this problem?

I thought about using a folder structure like this:

Animals

-Vertebrates

--mammals

--birds

---Podicipediformes

---Pelecaniformes

Do you thinks this is the best way or should I use some "selects" inside my items?

Marko Žmak

Thursday 05 May 2011 6:18:47 am

Well since the biological classification is usually presented in a form of tree, then it's pretty logical to map it to the eZP content object tree model.

As an alternative there could be a solution of having an object relation attribute which would then be used to connect to an object of type "Species". The classification tree would then be implemented as a tree of "Species" objects.

Which solution is best for you depends on how will you use and manage this data. You should ask yourself this questions:

  • how will you present the data on the site?
  • do you have any other parallel classification that you have to implement?

Also, note that fetching on attribute filter is very very much slower than just fetching nodes from a subtree. With that in mind I think the first idea would be your best bet.

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Erland Flaten

Thursday 05 May 2011 9:14:39 am

Maybe you should also consider to use tags to group animals.

With tags you could also make listings later that groups animals according to tags ala "pink". In that way you make collections that maybe children asks for like all animals with a colour no matter if its is Coral-animal or Flamingo.

Erland Flaten, Lillehammer Norway.

Erland Flaten
Lilllehammer, Norway

Ivo Lukac

Thursday 05 May 2011 1:45:35 pm

Hi,

For multiple classification with hierarchy try eZ Tags: http://projects.ez.no/eztags

http://www.linkedin.com/in/ivolukac
http://www.netgen.hr/eng/blog
http://twitter.com/ilukac