AugustMiller / kirby-architect

📐 Easily reference Blueprint data from anywhere in your Kirby application.
38 stars 1 forks source link

Option blacklist for `select` menu output #2

Open AugustMiller opened 8 years ago

AugustMiller commented 8 years ago

You should be able to eliminate some options on-the-fly when outputting select menus.

A very specific use case might be that a set of filter controls doesn't need to include all possible options in the admin, i.e. eliminating an option like unknown: Unknown, which is not often valuable.

AugustMiller commented 8 years ago

In 75df224adc4e94155aede4522a85f00391670ec1, this was partially addressed, but uses a global c::set('architect.blacklist', [...]) configuration (not an “on-the-fly” argument). I'd like to take a stab at it, but the argument lists for many of these methods are out of control.