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.
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- craigh responded to »Using PageUtil::addVar() to load script code« 03:29 PM
- michiel responded to »password problem« 10:01 AM
- mazdev responded to »Hide "Register new account" and change template to 3 col« 07:50 AM
- mesteele101 created topic »Zikula 1.3.3 - Site Search 1.5.2 - Unable to turn off plug-ins« 07:48 AM
- mesteele101 responded to »ERR (3): E_USER_ERROR: Smarty error: [in pagesvar:pagesitem2en line XXX]…« 25. May
- mazdev responded to »Pages 2.5.0 and updating - Page not found« 25. May
- mesteele101 responded to »Zikula 1.3.3 - Selecting a category in Pages not working« 25. May
Zikula Blog
- Anatomy of Open Source Projects on Mar 07
- Continuous Review on Mar 01
- Not Invented Here on Feb 24
- How to Contribute Your Code at Github on Jan 13
- 10 Steps to Coding-Nirvana: Tips for Successful Module Writing on Nov 12
- Submitting Bug Report Tickets That Get Results on Aug 17
- Cozi Tricks #1: Syntax Highlighting on Aug 07
Login
Categories - leaf or not?
-
- Rank: Helper
- Registered: Dec 31, 1969
- Last visit: May 07, 2010
- Posts: 507
-
- Rank: Developer
- Registered: Aug 23, 2003
- Last visit: May 31, 2010
- Posts: 1428
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 -
- Rank: Developer
- Registered: Dec 31, 1969
- Last visit: May 31, 2010
- Posts: 303
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 -
- Rank: Helper
- Registered: Dec 31, 1969
- Last visit: May 07, 2010
- Posts: 507
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.
- Moderated by:
- Support
