nathanpitman / categories_field.ft.ee_addon

An ExpressionEngine 2.x fieldtype which can be used to save category IDs to a custom channel entries field or sync with native categories for a better categories interface.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Option to enforce single selection (radios)

nathanpitman opened this issue · comments

In some scenarios you don't want to allow a client to select more than one category.

+1 on this -- even better if there is an option to pick between radios and a dropdown (to save space).

Yup, hadn't thought of that but seems an obvious thing to do doesn't it. :)

Also possibly you can roll the Primary category functionality field into this somehow? i mean, if you're only allowing one category, that category is also the primary category, obviously. So maybe just have a flag, "allow only one category", and if you tick it, it AUTOMATICALLY sets up primary category and moves the radio buttons to the left side (hiding the checkboxes).

I dunno, just wanting to point out that "primary category" and "single select" are definitely overlapping ideas.

Hi Adrienne, that's a great idea - thanks!

Any further work on this? I'm on another project that i need this addon for, and I thought i'd see if you'd given it any more thought! (If not I might fork it and help out.)

Hi @adrienne I'm stacked at work at the mo so I'm unlikely to have time to address this in the near future. Feel free to fork the project and I'll merge your contributions back in at a later date... :)