I think this is the right solution.trendoman wrote: Unfortunately, couldn't find a proper general solution and modified couch/_system/theme/content_form.html![]()
- Code: Select all
<cms:if k_error_k_page_name eq 'Required field cannot be left empty' >
<cms:show_error>
<strong>Title</strong>: Required field cannot be left empty
</cms:show_error>
<cms:else_if k_error />
<cms:show_error>
<cms:each k_error >
<cms:show item /><br>
</cms:each>
</cms:show_error>
</cms:if>
Your if statement should probably also check which template is being edited, so the error isn't mangled on other templates. You can also simplify the first condition. Just check if an error message exists.
- Code: Select all
<cms:if k_error_k_page_name && k_selected_masterpage eq 'my_template.php'>