Hi my dear,
I'm porting an umbraco v 4.7.0 sito to the new Umbraco 7.5.9 version.
In the old version we used a lot a User Control Wrapper to populate a DropDown list with data stored insside the DB. Now I need to remove the old code because is not compatibile with U7 but I don't know the best way to takle with the problem. I built a class inheriting from AbstractDataEditor and put it inside the App_code but u7 don't see it into the property editor list. I'm usign the right approach? I don't have competency on angular.
Creating DropDownList data Type populated from DB
Hi my dear, I'm porting an umbraco v 4.7.0 sito to the new Umbraco 7.5.9 version. In the old version we used a lot a User Control Wrapper to populate a DropDown list with data stored insside the DB. Now I need to remove the old code because is not compatibile with U7 but I don't know the best way to takle with the problem. I built a class inheriting from AbstractDataEditor and put it inside the App_code but u7 don't see it into the property editor list. I'm usign the right approach? I don't have competency on angular.
Please can you help me. Thanks in advance.
Hi Dante
Have a look at nuPickers package:
https://our.umbraco.org/projects/backoffice-extensions/nupickers/
this enables you to setup dropdown property editors based on an external SQL source, and lots of other options too!
Failing that, it's a case of creating a Web API endpoint using an UmbracoAuthorizedJsonController to return your list of dropdown options in JSON format, https://our.umbraco.org/documentation/Reference/Routing/WebApi/
combined with an AngularJs property editor
https://our.umbraco.org/documentation/Tutorials/Creating-a-Property-Editor/
to make the request to the api endpoint and list out the dropdown options.
regards
Marc
Thank you very much Marc for your support. We decided to use nuPickers and is working fine. Thanks again.
Dante.
is working on a reply...