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.

Can I restrict a category dropdown menu to a specific category group in Safecracker?

December 10, 2011 7:18pm

Subscribe [3]
  • #1 / Dec 10, 2011 7:18pm

    Mike Mella

    178 posts

    This question may be related to a resolved thread.

    In a Safecracker form, am I able to restrict a category dropdown menu to show only categories from a specific category group? 

    This thread suggests that I can using group_id, but I can’t get that to work.  Nor does show_group work for me.

    Is this possible?

  • #2 / Dec 12, 2011 12:06pm

    Kevin Smith

    4784 posts

    Hi Mike,

    I’m sorry about that misleading post on our forums. SafeCracker doesn’t actually support parameters in the categories variable pair, so as of right now, it’s an all-or-nothing proposition. I would definitely recommend posting a Feature Request for this sort of thing if you’d like it to be added to the core.

    Is there anything else I can help you with?

  • #3 / Dec 12, 2011 12:09pm

    Mike Mella

    178 posts

    Hi Kevin.

    I did find this bug report: https://support.ellislab.com/bugs/detail/16989

    I’ve implemented the hack suggested there for now.

    Thanks for the help.

  • #4 / Dec 13, 2011 7:40pm

    Sean C. Smith

    3818 posts

    Mike,

    Glad to see you’ve found a solution. Don’t hesitate to post again when you need more help.

    Sean

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

ExpressionEngine News!

#eecms, #events, #releases