Adding server-side validation | Umbraco ...
# package-development
r
I am about to pull my last hairs out... I was very happy to see DataEditor https://docs.umbraco.com/umbraco-cms/tutorials/creating-a-property-editor/adding-server-side-validation is still supported in V14 I use that for SEOChecker . I've implemented the class and manifest in this gist... https://gist.github.com/rsoeteman/966b3e4e6d12c69166e98800a5c0dbc9 The property editor is showing up in Umbraco the constructor is hit on the dataeditor but when I open or save a document no breakpoints are hit on ToEditor and FromEditor 😦 Also the value in ToEditor is not send... I've also added a validator as shown in the documentation and then a breakpoint is hit on the validator method on save... Is there any magic that I missed to get this to work?
w
Any luck or is it still not working for you. Cant say I have tried this out though
r
No Luck 😦 Hoping for an extra set of eyes (from HQ maybe? )
w
It’s community days at HQ so you may not get an answer too fast…
r
I know what the "issue" is. Previously this object was always called. Even on new pages, seems that is no longer the case since it filters on properties that have values assigned, second time it will be hit.
6 Views