cancel
Showing results for 
Search instead for 
Did you mean: 

easy question

joksy
Champ in-the-making
Champ in-the-making
Hi people, Just a simple question, well probably it is simple. I look around all the web config file for find the condition to make a property mandatory.

For instance, during the creation of a content the name should be mandatory otherwise is not possible proceed in the operation. How that is possible??

I means exist a flag in the config file to achieve this behavior ?? I post the part of my config.

   <config evaluator="node-type" condition="rs:adocument"> 
      <property-sheet>
         <show-property name="mimetype"
           display-label-id="content_type"
           component-generator="MimeTypeSelectorGenerator" />
      <separator name="ContentSep" display-label="Proprietà Aggiuntive " component-generator="HeaderSeparatorGenerator" />
         <show-property name="rs:Thema"
          ignore-if-missing="false"/>
         <show-property name="rs:Date"
         ignore-if-missing="false" />
      </property-sheet>
   </config>

My first think is over this flag ignore-if-missing="false" because literally means that a field is not filled we can ignore so false but nothing  happen.

Thanks guys
1 REPLY 1

joksy
Champ in-the-making
Champ in-the-making
Self solved

insert mandatory tags

   <config evaluator="node-type" condition="rs:adocument">
      <property-sheet>
         <show-property name="mimetype"
           display-label-id="content_type"
           component-generator="MimeTypeSelectorGenerator" />
      <separator name="ContentSep" display-label="Proprietà Aggiuntive " component-generator="HeaderSeparatorGenerator" />
         <show-property name="rs:Thema"
          ignore-if-missing="false"/>
<mandatory>true</mandatory>
         <show-property name="rs:Date"
         ignore-if-missing="false" />
      </property-sheet>
   </config>