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

eZ debug

Timing: Jan 17 2025 23:56:45
Script start
Timing: Jan 17 2025 23:56:45
Module start 'content'
Timing: Jan 17 2025 23:56:46
Module end 'content'
Timing: Jan 17 2025 23:56:46
Script end

Main resources:

Total runtime0.7012 sec
Peak memory usage4,096.0000 KB
Database Queries202

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0061 588.8438180.8438
Module start 'content' 0.00620.5713 769.6875644.3828
Module end 'content' 0.57740.1237 1,414.0703337.3750
Script end 0.7011  1,751.4453 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00390.5518210.0002
Check MTime0.00160.2276210.0001
Mysql Total
Database connection0.00100.137910.0010
Mysqli_queries0.623988.97292020.0031
Looping result0.00190.27692000.0000
Template Total0.677796.720.3389
Template load0.00190.273220.0010
Template processing0.675896.377220.3379
Template load and register function0.00010.017110.0001
states
state_id_array0.00070.106410.0007
state_identifier_array0.00090.121820.0004
Override
Cache load0.00160.2323330.0000
Sytem overhead
Fetch class attribute can translate value0.00120.175550.0002
Fetch class attribute name0.00090.131270.0001
XML
Image XML parsing0.00300.426550.0006
class_abstraction
Instantiating content class attribute0.00000.004070.0000
General
dbfile0.00711.0149420.0002
String conversion0.00000.000930.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/li.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/li.tplEdit templateOverride template
1content/datatype/view/ezxmltags/ul.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/ul.tplEdit templateOverride template
1content/datatype/view/ezxmltags/link.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/link.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 18
 Number of unique templates used: 8

Time used to render debug report: 0.0002 secs