Umbraco 15.4.1 Contentment 6.0.0-alpha007 Custom Data Source #465
-
Hello, New to using contentment I'm trying to create a custom DataPickerSource as I need to generate a list of items that I have generated and cached on my project. I have the code below which I got from the examples updated to using the new return types but I can't work out how to get the option to appear in the backend as an data source. The documentation says about creating a custom display mode but not sure if that's mandatory or not or if there's another step to do. Any help would be appreciated.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
@chrisgeorge-i-finity Apologies for the delay in replying. The C# code looks correct, (I assume it compiles fine for you?). There's no need for a custom display mode (unless you want one?). If the C# compiles fine, then a quick way to check if it is loaded into the backoffice is by going to "Settings > Extension Insights" and searching to see if the custom data-source has been registered. If not, then let me know some more about your set-up, environment, etc. |
Beta Was this translation helpful? Give feedback.
Added that method in and now the DataSource is appearing in the Extension Insights