Fork me on GitHub

Using the categories system in .80 MS2  Bottom

Go to page [-1] 1 - 2:

  • Maybe there should be an simple and advanced area of the categories module. Simplify the workflow for people just wanting to make simple categories for news, downloads, web links, etc.
  • MACscr


    When working on large sites with lots of categories, it can make a huge difference. Again, the categories can be set for all modules, a few modules, or just one. Heck, people think a drop down menu for the user list in admin is sufficient, but its not on extremely large sites. We got to look at the big picture on things.



    MACscr: you can create a category for this kind of control, you can call this category as moduleName_Categories (or similar) and its content can be the categories used for this module.




  • I like how all the contact fields are pre-populated with @value4business.com .. nice touch. I think that's probably my favorite part about it. I hope it (the categories module) can be safely removed. if not, can I get the pre-objLib themes module? icon_biggrin

    edited for "clarity"



    edited by: InvalidResponse, Sep 30, 2006 - 12:56 AM
  • markwest



    So there is a need to let each modue know where in your category tree it should look for it's categories. This is achieved via the categories registry (admin->content->categories->edit category registry).

    Using the news module as an example. In the first drop down (the module) select 'News'. This will populate a list of tables handled by the module into the second field - select pn_stories (the only table here...). In the third field (the property name) type Main.

    Lastly select where in the category tree you want to use as the categories. A sample tree /__SYSTEM__/Modules/Quotes/Default is probably a good place to start. Click submit and now your category drop-downs will contain the categories listed in this part of the category tree.
    -Mark

    Tried to follow instructions on clean install of MS2 but without success. Also cannot add any category to the tree. :(
  • sergis


    Tried to follow instructions on clean install of MS2 but without success. Also cannot add any category to the tree. :(


    Updated postnuke to "PN800_20061001" and now it is possible to assign "/__SYSTEM__/Modules/Quotes/Default" to News, FAQ.
    But still do not know how to add new categories to the tree (tried admin->content->categories->create category).
  • On /System/Categories/pnAdminForm.php

    is necessary add a line at begin:

    Loader::loadClass ('categoryutil');

    for make work rebulid paths.




  • Some further updates

    1) A bug with the validation code crept into MS2 that prevented categories from being created or updated. This bug has been fixed and the fix will appear in tonights snapshot
    2) The current category data is a direct import from Openstar. I'd expect that data to change so I wouldn't worry about the specifc data.

    -Mark

    --
    Visit My homepage and Zikula themes.
  • Ok, thnx.
    Will try later.
    Anyway would like to ask for a short tutorial on how to use categories module... (just do not know what is "Data field 1,2,3,..", "Security domain", also do not know rules for filling "Unique name", "Value")
  • TO Correct the above posting...

    In /system/Categories/pnadminform.php AND /system/Categories/pnuser.php AND /system/Categories/pnuserform.php
    is necessary add a line pior to functions: (Top)
    Loader::loadClass ('CategoryUtil');


    There may be other spots also, but these are the 2 I found while trying to make Categories work.
    There must be an easier way, but I can barely type let alone code. I looked in the snapshots and couldn't find working changes. I added categories to the tables directly to get them working...

    P.S. Caps matters... But you knew that...



    edited by: concreteman, Oct 31, 2006 - 08:40 PM
  • I've long been category functionality into modules by hand, so this Categories module seemed just the thing I needed to streamline processes. After a bit of confusion, I think I'm starting to get it.

    Is it safe to assume that you only need to create a single registry entry for a given module once?

    In an effort to get categories working (and before seeing this post) I created several categories for FAQs ... giving them all different names ... and they all updated to the database. However, none of them would show for FAQ's until I named one of the registry entries as "Main" for the Property name; is the expected behavior?

    If you do only need to create a registry for a given module once, why did the system take more than one registry for the (FAQ) module... is there some other purpose for this?

    PS! I searched the Wiki page for page looking for the info that's in this post...maybe a temp. link could be placed there (since users are supposed to read the docs, after all!) until a more formal doc. can be created.

    Thanks for the added functionality.

    - Alar

    Oh, in IE, there is a script error on every click when expanding/collasping the graphical categories.

    Quote

    Line 37
    Character 15
    Error: 'toBeHidden' is undefined
    Code: 0
  • One more item ... there seems to be no deletion confirmation for categories...

Go to page [-1] 1 - 2:

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