Categories hierarchy not displaying in community events submission form

Home Forums Calendar Products Community Events Categories hierarchy not displaying in community events submission form

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #896298

    I’m using events pro, community events, and filter bar. All the categories show up in the community events submission form but not in a parent/child hierarchy as set up in backend. I know the hierarchy is being recognized by events pro because it shows up in the filter bar.

    How can I create get the hierarchy to display in the community events submission form?

    #897980
    Brook
    Participant

    Howdy torontokundaliniyoga,

    That is a good idea. This can be accomplished via a theme override. You could overrid /community/modules/taxonomy.php. Instead of calling formCategoryDropdown() you could write your own function that outputs categories as a select, perhaps doing subcats inside of optgroups? At that point it is up to you!

    Obviously that will require some knowhow. This could be a popular feature request though. If you would like to recommend it as a feature so the community can vote on it, that would increase the likelihood that we could build this out as a feature integrated into Community in the future.

    Does that all make sense? Can I answer any further questions? Cheers!

    – Brook

    #898162

    Howdy right back atchya Brook,
    Your answer definitely comes close to making sense and would probably make complete sense if I knew PHP. Alas, I am but a poor low level seat of the pants HTML/CSS guy. I shall have to leave the situation as is and just go with non-hierarchical categories and request the feature for future community events builds as you suggested.
    Thanks for the quick reply, much appreciated
    TKY

    #902549
    Brook
    Participant

    Yeah, I wish there was an easier option. Good call on requesting it as a feature. It makes sense to me. It certainly makes a lot of sense! However, I believe there is some difficulty with implementation. Since <optgroup>s are not selectable, we would either need to add the parent category elsewhere, perhaps as a subcat under its own heading. Or, we would need to create our own visual distinguishment, perhaps prefixing subcats with a dash. Either way it is super janky and probably would get complaints from some people. But, if enough people are interested in it then it will make sense to choose a route no matter how janky it is. Thanks for the suggestion!

    – Brook

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Categories hierarchy not displaying in community events submission form’ is closed to new replies.