Boolean Field

From Sense/Net Wiki
Jump to: navigation, search
  •  
  •  
  •  
  •  
  • 100%
  • 6.0
  • Enterprise
  • Community
  • Planned

Overview

The Boolean Field is used for storing a boolean value (true or false).

Details

Field handler

  • handler: SenseNet.ContentRepository.Fields.BooleanField
  • short name: Boolean

Usage in CTD:

   <Field name="IsSystemContent" type="Boolean">
   ...
   </Field>

Supported Field Controls

Configuration

There are no specific properties defined for this Field Control besides the common properties.

For a complete list of common Field Setting configuration properties see CTD Field definition.

Example/Tutorials

Fully featured example:

    <Field name="RequiresRegistration" type="Boolean">
      <DisplayName>Requires registration</DisplayName>
      <Configuration>
        <VisibleBrowse>Hide</VisibleBrowse>
        <VisibleEdit>Advanced</VisibleEdit>
        <VisibleNew>Advanced</VisibleNew>
      </Configuration>
    </Field>

The above example configures the Reference Field so that:

  • display name will be Requires registration
  • the field will be hidden in browse mode and it will be under the advanced fields in edit and new mode when the Content is displayed with Generic Content View.

Related links

References