• Resolved leost

    (@leost)


    Can you show/hide fields and metaboxes on the fly, upon checking a category item, before updating the post?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Perhaps something like https://github.com/jcchavezs/cmb2-conditionals ? or are you specifying specifically the core category metabox?

    Thread Starter leost

    (@leost)

    Specifically the core category metabox. The one that is listed on the column to the right of the content editor.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Nothing I’m aware of that ties in with those metaboxes. That said, I have to imagine something could be done up with javascript. Just nothing readymade

    Thread Starter leost

    (@leost)

    I have a parent and child category structure. Does the plugin allow me to mark the parent and the child, as if I am using the core category metabox? If yes then maybe I can achieve what I want using the plugin and the conditionals extension, right?

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Closest i can think of is setting up a new metabox that also works with the core taxonomies, like categories and tags, and just use that instead of the default one. Perhaps hide the default via the screen options settings, so that you just use your own.

    May be worth checking out https://github.com/cmb2/cmb2/wiki as a whole too, as it offers a lot of ideas/snippets/examples of what others have done in the past.

    Thread Starter leost

    (@leost)

    I did some initial testing and I was able to replace the core category selection metabox with the taxonomy_multicheck_hierarchical type. Both look the same, but the plugin one sits in the content area, which is good for my goal.

    After that, I was able to show/hide fields on the fly based on category selection using the https://github.com/jcchavezs/cmb2-conditionals.

    I think that’s the way to go!

    This is an amazing and poweful plugin!
    You answer fast and give helpful tips!

    Thanks for your help!

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Glad I could help. Let us know if you need anything else, and we’ll continue to help the best we can.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Show/hide fields on category change no refresh’ is closed to new replies.