umco / umbraco-stacked-content

Stacked Content for Umbraco 7
https://our.umbraco.org/projects/backoffice-extensions/stacked-content
MIT License
17 stars 27 forks source link

Nested Content (Umbraco) validation in Stacked Content #68

Closed CodeCheetah closed 5 years ago

CodeCheetah commented 5 years ago

Hi,

I have a nested content with a bunch of properties set as mandatory inside stacked content package. (nuget package v2.0.3) Validation does not kick in and Im able to save the page/content with empty fields.

Any ideas?

Thanks.

leekelleher commented 5 years ago

Hi @CodeCheetah, thanks for raising this.

Unfortunately, it's a known issue - which we can not do much about it, sorry.

The same issue applies to all the "nested" content editors, e.g. Nested Content, Stacked Content, DocTypeGridEditor. @mattbrailsford has given a more detailed answer on the DTGE repo: https://github.com/umco/umbraco-doc-type-grid-editor/issues/114#issuecomment-447024007

Our recommendation is that you make everything non-mandatory and code your views defensively, so that you don't display any items that do not have the required content.

It's not an ideal solution, but it's the simplest. Hope this helps.

CodeCheetah commented 5 years ago

Hi Lee, thank you for your prompt response.