Fork me on GitHub

Categories - leaf or not?  Bottom

  • I am doing my first site in which global categories will be extensively used. I am working on setting those up now.

    I am uncertain how to set up my category trees. For example I need to list some organizations, which have sub-organizations within them:

    - Organization 1
    -- Division I
    -- Division II
    - Organization 2
    -- Division I
    -- Division II

    In various content modules, I will need to be able to assign categories to not only the divisions, but to the organizations as well.

    If I set Organization 1 as a leaf, then when I create Division I I cannot select Organization 1 as the root. If I do not select it as a leaf, I can. However if I create Division I and set root as non-leaf Organization 1, then afterward change Organization 1 to leaf, it all still seems to be functional.

    Will this break something I am not seeing? What is the functional consequences of a category being a leaf or not?

    Thanks.
  • When it is leaf you cannot add categories below that category. I think that is the only thing.

    --
    campertoday.nl, Module development, Dutch Zikula Community
  • Yea, leafs are at the end of the branch on the tree.

    Bronto, were you hoping the categories would help aggregate the module information some how?

    I tried to do that a year or so ago, and at the time the categories module was not able to aggregate the various modules to present a kind of activity report for the respective category. It was always my hope the categories would do this.

    I was thinking about this again recently. I was setting up the sitemap module and going through the configuration; it struck me that the module selection that the sitemap page uses would make a nice method for setting up a category index page as well. Select the modules you want to present per category, and then select something like either the main content output or block style output, and then what column you want the output to appear in.

    I suppose this might be a good use for the zk1.3 event system...

    Paul
  • Actually, I wasn't looking that far ahead. Just noticed something strange and wondered if taking advantage of it would help/break anything.

    But your idea is intriguing. Maybe that's an idea of the core developers to work on in a later version.

This list is based on users active over the last 60 minutes.