Fork me on GitHub

Undestanding Zikula Categories.  Bottom

  • Is it possible to have Categories for a particular modules only.
    example:
    Created Category1,Category2,Category3.
    but Category1 is mainly used for a News module and
    Category2 and Category3 for Pages.
    So when user tryies to view of category list when he is on pages section, he sees that Category1 has no pages
    and if he is viewing categories from News module he sees zero stories in Category2 and Category3.

    So question is can somehow tie Category2 and Category3 to pages only and Category1 to News?

    In categories administration there is many options how to create category. Is there HowTo/doc for categories module?

    thanks in advanced
  • Yes, this is possible by using category registries. A registry acts as a pointer to a root category.
    By default the VA modules all register their entrypoint at the global categories subtree.

    One other example to understand this better in practice: MediaAttach creates three category registries for its file table. All three point to the same root category. But you can edit those registries in the categories admin panel and change their routing. This way you can for example the first category fields for topics and the second one for a year or a target group.
    Another more comprehensive example is the extdb. This module creates about ten different registries. Some common ones (like license), five for modules, three for themes as well as a few others.
    The advantage is that the admin can manage all dropdown values at the categories administration - even for multiple languages.

    --
    Guite | ModuleStudio
  • Guite
    Thanks I cheked this staff

    Quote

    One other example to understand this better in practice: MediaAttach creates

    I did not notice this. Now i see how this works..Main Second and Third point to Global...

    I have 3 minor problems/questions:

    1. when i do index.php?module=News&func=categorylist

    there are two strings(CategoryTypes) in my case
    "Main" (here are listed Global categories) and
    "Second" (here are listed my created categories with the registry.
    this two string "Main" and "Second" where are translated? or where can i translate them?

    2. second question.
    I have "Second" Catregistry for News:

    News stories Second /__SYSTEM__/Modules/News)

    My categories for this registry are

    News
    ----Local
    --------Journals

    News Category has child Local . Local has child Journals.

    Now let say i want to publish story.

    For Main category I choose "Politics".
    For Second I choose Journals.
    Story is published and I'm happy :) ..

    Now if you go to
    index.php?module=News&func=categorylist (like it is in adminview of categories :) )

    you see "Main"
    and in "Second" you see only
    "Local" . there "Journals" is not listed.

    when you see article you see only two Categories
    where article is published "Politics" and "Journals", but you don't see "Local"

    I can live with this but would be nice to have:
    1.treeview like structure output for function categorylist().
    2. Let user choose he wants only catnames listed where article/orpage is published like it is now or
    full path of categories like

    articletitle
    hometext
    Filed under "Politics" "Local:Journals"

    This are just a suggestions :) ..

    and one more..what is this "Category is a leaf node" checkbox? how this
    thing woks and can affect results?

    Locked means, you can not publish in this Category and publish only in children?

    thanks again for a great Zikula thing..

    p.s.
    you are author of mediattach, right?
    thank you, it saved me about month of work indexing server media and document files :)..
    just 1 minor thing can not make play inline mp3. with xinha it works fine :)



    edited by: shoshia, Jun 26, 2009 - 05:36 PM
  • Brother, i feel your pain. Categories module is so user-unfriendly that i have not touched it since my upgrade from 764.

    I would *like* to reorg everything, but i tried in my lab and it blew up. essentially to reorg,

    1. create global categories
    2. move all my News articles into the structure
    3. move all my Reviews into the structure
    4. Tell News module to start using Categories rather than Topics
    5. Tell Review to use Categories

    oh well....

    supa

    --
    ttgapers.com - the latest from the caribbean
    Caribbean News
    Online Shopping from USA, Canada, UK, France, Germany
    On Facebook
  • shoshia, the categorylist in News is rather new, so there might be some enhancements later on. Do place your ideas in a ticket in cozi/news. (Enhancement of categorylist).

    And it is like everything in live, once you get to know the category system a little you appreciate the flexibility. There are a lot more possibilities than Topics in pn764. But that comes at a certain price. The admin part of the categories can indeed be improved to get a better user friendliness and some docs (offline or in the admin section itself) might help there as well.

    --
    campertoday.nl, Module development, Dutch Zikula Community
  • espaan

    Quote

    shoshia, the categorylist in News is rather new, so there might be some enhancements later on. Do place your ideas in a ticket in cozi/news. (Enhancement of categorylist).

    ok..

    Categories make zikula very flexible. Actually if module supports categorization you can categorize everything. Userfrendliness sometimes is expensive in price of flexibility of modernization. I can work with existing admin interfase.

    One more thing... Can I in current implementation of the Users or Profile/MyProfile modules categories tie some to this modules? or this can be categorization of Groups module. But i guess permissions staff
    will not be easy to apply this kind of approach.

    another thing is Categorize Groups so group Users can have some categories and Users permission applies to all categories which is registered to the users group...but another group can point to same categories
    like in MediaAttach and or Pages/News.So Groups and Users permissions are checked not but not categories. I think this is possible.

    why i need this:
    I'm doing large community site. difference from other types of sites is that here user real information is
    important. It is research portal, where users can submit their CV (here comes categorization/Groups for users), publications (here categorization comes), research projects with annotation (here also come categorization)



    edited by: shoshia, Jun 27, 2009 - 08:54 AM

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