You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you try to create a new admin template with empty content, the template is not created but also no error or warning is displayed either. If you edit an existing admin template by clearing out its content, then the The content is mandatory. validation message is displayed, but this does not happen when creating a brand new template. This is certainly a bug, and very confusing behavior.
Additionally, it's not made clear why an empty content is not allowed. I know that using Placements to not even display the shape is a more "correct" approach, but that's a more advanced feature. The validation message should funnel the user towards Placements by mentioning the option and perhaps including a link to the relevant documentation page, instead of just saying that the field is mandatory.
Orchard Core version
Latest dev branch.
To Reproduce
Go to Admin > Design > Templates.
Create a template, e.g. name "Menu" and content "custom template".
Click Edit on the template.
Clear content and click save.
Observe the "The content is mandatory." message is present.
Delete the template.
Do it again, this time with empty content during creation.
Observe that the validation message is missing. If you didn't pay attention, you may think the page wasn't even submitted.
Expected behavior
The empty content validation message should be the same regardless whether we are creating a new template or editing an existing one.
The message should be something like "The content is mandatory. If you left the content empty because you want to hide the shape, use the {Placements}(relative link to the Placements menu item) instead. See the docs for more about this feature."
The text was updated successfully, but these errors were encountered:
Describe the bug
If you try to create a new admin template with empty content, the template is not created but also no error or warning is displayed either. If you edit an existing admin template by clearing out its content, then the
The content is mandatory.
validation message is displayed, but this does not happen when creating a brand new template. This is certainly a bug, and very confusing behavior.Additionally, it's not made clear why an empty content is not allowed. I know that using Placements to not even display the shape is a more "correct" approach, but that's a more advanced feature. The validation message should funnel the user towards Placements by mentioning the option and perhaps including a link to the relevant documentation page, instead of just saying that the field is mandatory.
Orchard Core version
Latest dev branch.
To Reproduce
Expected behavior
The text was updated successfully, but these errors were encountered: