Subcategories with the Categories Module  Bottom

  • I'm using the Category module to give category support to a module I'm working on. When I go to the edit/create category screen from my module (like going in form the News module), I do not see a way to assign a parent category to the category I'm entering. Is there a parameter that needs to be used to turn on subcategory support? I know you can do subcategories going through the Category module admin.

    --
    cyber_wolf
    www.bkbsolutions.com - My Zikula module development site.
  • Anyone have any idea?

    --
    cyber_wolf
    www.bkbsolutions.com - My Zikula module development site.
  • click on the parent?

    --
    best regards from Kiel, sailing city

    Steffen Voss

    Member of the Zikula Steering Committee
    Read The Zikulan's Blog "If you want people to RTFM, make a better FM!"
  • Does not work. I just tried with the Jan 3 build. You can do subcategories through the Category module admin panel, but not when going from another module. For example. Enter the News admin panel. Click on the icon to edit the categories. No way to enter subcategories.

    --
    cyber_wolf
    www.bkbsolutions.com - My Zikula module development site.
  • This is a feature. The user edit side is designed to edit a single-category hierarchy, without subcategories. Maybe in the future this can be expanded to included subcategories, but for 0.8 it will remain as is ...

    Greetings
    R
  • Perhaps I'm daft but:

    When inside the Categories admin area, I can not add a subcategory. I would like to create a subcategory from a global category but when I attempt to create a new one and select its parent, all I see is |----Global and not the Categoryies within Global. Am I missing something?

    (Realize I'm not developing a module but I searched and it seems an appropriate question to ask here.)

    --
    [ stevencopley.com ]
  • In order to make one of the categories in Global capable of having subcategories, you need to make the categories "Category is a leaf node" field unchecked. As of the 1-10 build, the unchecking of this field is still a bug. You'll need to uncheck it directly in the database. In the table "pn_categories_category" find the category you want to have subcategories and give the value of 1 to the field "cat_is_leaf". This will then allow you to add subcategories.

    Edited: This should be a value of 0, not 1.



    edited by: cyber_wolf, Jan 12, 2008 - 02:14 PM

    --
    cyber_wolf
    www.bkbsolutions.com - My Zikula module development site.
  • Thanks!

    --
    [ stevencopley.com ]

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