ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Category Checkboxes Extension

November 24, 2007 5:45pm

Subscribe [55]
  • #91 / Aug 20, 2008 4:06pm

    Todd D.

    460 posts

    I should have read through that more thoroughly. What I am looking for is to toggle the category groups themselves… so that groups can expand and collapse.

    I am dealing with more than 200 categories and would like to simplify this as much as possible.  Maybe a suggestion for the next version?

  • #92 / Sep 20, 2008 4:32am

    Doggie52

    113 posts

    I must say I prefer the multi-select box for reasons I don’t really know, but I will give this a try!

  • #93 / Nov 07, 2008 6:48pm

    Ryan M.

    1511 posts

    I would love to be able to either control the height of the category box itself, or toggle the category groups. This may be solved in 1.1.5 (I still have 1.1.3), but if not…I’d love to see it.

    EDIT/ADD:

    For the record, just to control the height of the whole thing when you have a bazillion categories, I downloaded version 1.1.5, and changed line 268 from this:

    
    

    to this

    
    

    That ensures that no matter how many categories, the box is only 500px tall. Would love to break the groups into their own tables as well - as seen in this thread: Rethinking the display of several Category Groups in CP Publish and Edit forms

  • #94 / Nov 07, 2008 7:57pm

    Sean C. Smith

    3818 posts

    Ryan,
    thanks for the code - I’ll do that with my own install as well.

  • #95 / Nov 07, 2008 8:38pm

    Ryan M.

    1511 posts

    This could easily be made a setting, if you wanted to set the height of the box there - or even not do this at all - but that’s more than I want to take on right now!

  • #96 / Nov 08, 2008 3:05am

    Matt Weinberg

    489 posts

    Ryan—you are the best. Awesome call with that code.

    I’m working right now on trying to make the sections separately collapse as well….

  • #97 / Nov 08, 2008 1:59pm

    Ryan M.

    1511 posts

    I spent some time this morning looking under the hood to try and do a couple things:

    1) Order the category groups by title, rather than group_id. That requires another hook (I believe the one needed is publish_form_category_display), the description for which reads “Rewrite the displaying of categories, if you dare!” - which is not promising. I tried adding that hook, then re-doing the category queries, joining two tables, then ordering by the group_name - but I couldn’t seem to get it to work.

    I should say that I can get the group titles to order by name, but the categories below them don’t follow.

    2) See about making collapsible “panels” for each category group. Sounded easy enough (just do a basic jQuery toggle), but I was looking at Cocoaholic’s javascript work and I’d have a hard time jumping on on this unless I had a day to spend on it, which I don’t right now.

    If anyone can beef this up, by all means, jump in!

  • #98 / Dec 04, 2008 1:03pm

    timkelty

    177 posts

    I was getting a JS error in the control panel with this extension on when I didn’t have any categories for the particular weblog.

    Fixed with this:

    // hide multi-select box
        // CHANGED: Fusionary: check for existence of #categorytree first
        if (!document.getElementById || !document.getElementById('categorytree')) return;
        document.getElementById('categorytree').style.display='none';
  • #99 / Dec 29, 2008 1:17pm

    Todd D.

    460 posts

    Nice work Ryan on the height modifications. I too would like to see the use of collapsible panels for the category groups… and I imagine this isn’t too difficult to implement. However… with little to no time on my hands… it becomes impossible.

    I also wanted to add a shout out to the extension developer saying thanks so much for your hard work and PLEASE, PLEASE, PLEASE make this mod compatible with 2.0 when released.

  • #100 / Apr 16, 2009 11:07am

    neongray

    13 posts

    Great extension - I feel MUCH happier about showing this to a client rather than the multi select.

    A request/suggestion: Radio buttons - to allow only 1 category per group would be helpful. Perhaps in the settings you could list off the category groups and choose if its radio or checkbox.

    Just a friendly suggestion, great work!

  • #101 / Jul 24, 2009 3:55am

    topchi

    17 posts

    Hi Guys,

    I apologize if this is a dumb ass question…

    But I am a front end designer and only know EE on a very basic level.

    How do you install this plugin?
    I added the 2 php files one to the extension folder and one to the language folder and uploaded the files and nothing happened…

    sorry if this is a tard question… I’m a bit of newb when it comes to this… (Now if you want your site to work in ie6 with no hacks thats a different story!)

    My next dumb ass question is… In there a way in this system to make a category selection mandatory. A user cannot post unless they selected x amount of categories.

  • #102 / Jul 24, 2009 4:12am

    gridonic

    231 posts

    My next dumb ass question is… In there a way in this system to make a category selection mandatory. A user cannot post unless they selected x amount of categories.

    Checkout our required category extension: http://www.designchuchi.ch/index.php/blog/comments/required-category-extension/

  • #103 / Jul 24, 2009 5:53am

    topchi

    17 posts

    TY SIR!

    Your reply answered both my questions.
    😊
    I have been upgarded to newb1.1
    😛

    My next dumb ass question is… In there a way in this system to make a category selection mandatory. A user cannot post unless they selected x amount of categories.

    Checkout our required category extension: http://www.designchuchi.ch/index.php/blog/comments/required-category-extension/

  • #104 / Jul 25, 2009 10:56am

    anthonys

    54 posts

    Anyone figure out how to have the sub categories all collapsed initially and then auto expand when an individual parent category is clicked?

    Having an SAEF compatible version would be really cool.

  • #105 / Aug 19, 2009 4:14am

    Justin Long

    196 posts

    I would love to be able to either control the height of the category box itself, or toggle the category groups. This may be solved in 1.1.5 (I still have 1.1.3), but if not…I’d love to see it.

    EDIT/ADD:

    For the record, just to control the height of the whole thing when you have a bazillion categories, I downloaded version 1.1.5, and changed line 268 from this:

    
    

    to this

    
    

    That ensures that no matter how many categories, the box is only 500px tall. Would love to break the groups into their own tables as well - as seen in this thread: Rethinking the display of several Category Groups in CP Publish and Edit forms

    If you have a few weblogs that have a lot less categories as I do you can make one minor change to Ryan’s change so that it will adjust the height for the smaller category list.

    
    
    

    All I did was add max-height instead of just a height tag and it allows you to get the best of both worlds

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases