OrchardCMS / Orchard

Orchard is a free, open source, community-focused Content Management System built on the ASP.NET MVC platform.
https://orchardproject.net
BSD 3-Clause "New" or "Revised" License
2.38k stars 1.12k forks source link

Projector binding for enums #3652

Open orchardbot opened 11 years ago

orchardbot commented 11 years ago

@Piedone created: https://orchard.codeplex.com/workitem/19823

If you have an enum field on your record you can do anything with it if you add a binding to it in Projector.

What this needs for example is an IFilterEditor implementation that can handle enums. I've created a proof of concept but this could be in core too.

I really wanted to have a combobox for when the editor for the value is displayed but I haven found no way to do this: for this the form would need to access the type of the enum in question but the form has absolutely no knowledge about the context...

orchardbot commented 10 years ago

manudea commented:

I vote for this feature... It would be really useful. Right now you can add an association with an enum field but it throws errors any time and is not configurable.