OpenWGA 7.0 - Guide for OpenWGA Content Manager
Custom validations
Custom page validations can be specified on content type base.
To do this create a folder "wga:content-manager:validations" inside your design for medium "html".
Inside this folder create a TML for each content type you need validations. The name of the TML must be the name of the content type.
The TML defines validation rules in XML format.
Sample:
<validation>
<msg text="please enter headline">
<![CDATA[
headline==null || headline.replace(/<br.*>/g, "")==""
]]>
</msg>
<msg text="please enter date">
<![CDATA[
date==null
]]>
</msg>
</validation>