Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Is it possible to populate drop-down prevalues from an external source in the back end?
Example
I have a Blog entry and want to add an Author Dropdown which should be populated from and external API.
Where would I place this code? Are there any examples out there? I can see how to do this when rendering a frontend page, but not the backend.
Thanks in advance.
Hi there!
To create a custom dropdown with values from an external api, you would need to create a custom property editor.
You can find more information about custom property editors in the umbraco documentation.
Hi
you might be able to do this with the contentment package.
https://github.com/leekelleher/umbraco-contentment
it allows you to have a json data source for dropdowns/etc.
Thank you both for your answers. I've used the Contentment package first and that's working fine.
I will have a play with creating custom property editors too.
Best regards
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
How and where do I populate a Backend dropdown from an external JSON api in Version 9
Is it possible to populate drop-down prevalues from an external source in the back end?
Example
I have a Blog entry and want to add an Author Dropdown which should be populated from and external API.
Where would I place this code? Are there any examples out there? I can see how to do this when rendering a frontend page, but not the backend.
Thanks in advance.
Hi there!
To create a custom dropdown with values from an external api, you would need to create a custom property editor.
You can find more information about custom property editors in the umbraco documentation.
Hi
you might be able to do this with the contentment package.
https://github.com/leekelleher/umbraco-contentment
it allows you to have a json data source for dropdowns/etc.
Thank you both for your answers. I've used the Contentment package first and that's working fine.
I will have a play with creating custom property editors too.
Best regards
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.