Hi,
In Umbraco 13.6.0, Im trying to create a custom data type that has a button.
When the button is clicked it should post the current page node id to an api controller. I cant really find any documentation on how to do this.
I did try something like this. (in app_plugin folder)
Custom datatype button to call api controller
Hi, In Umbraco 13.6.0, Im trying to create a custom data type that has a button. When the button is clicked it should post the current page node id to an api controller. I cant really find any documentation on how to do this.
I did try something like this. (in app_plugin folder)
html:
js:
CS:
and then a controller:
Button is shown in my document, but nothing happen when clicked, and nothing in log..
Any ideas on how to do this correct?
Thanks
Try registering the controller
Problem solved. Thanks Richard
I also used a package.manifest like this:
and html like this:
is working on a reply...