Represents a field in schema. It corresponds to an element or attribute in a page.
A schema contains a flat list of multiple fields.
Namespace: Ingeniux.CMS
Assembly: Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 9.0.565.0 (9.0.565)
Syntax
The ISchemaField type exposes the following members.
Properties
Name | Description | |
---|---|---|
ChildElementLabel |
Gets and sets the child element label. Only applies to the List element field type.
| |
ChildElementName |
Gets and sets the child element's name. Only applies to the List element field type.
| |
ChildElementType |
Gets and sets the child element type. Only applies to the List element field type.
| |
DefaultValue |
Gets and sets the field's default value.
| |
Exports |
Gets the field's collection of local exports. Local exports add additional attributes for Link and Navigation element XML output to global exports.
| |
FieldType |
Gets and sets the type of field.
| |
HelpText |
Gets and sets a field's help text. Help text, displayed on the Ingeniux CMS edit form, is information to help users complete the field.
| |
Hidden |
Gets and sets whether the field is hidden for non-administrator users and users who don't have the
View Hidden Elements permission on the CMS edit form.
| |
Label |
Gets and sets the the field's label (friendly name).
| |
Name |
Gets and sets the name of the field.
| |
Readonly |
Gets and sets whether the field is read-only for non-administrator users on the CMS edit form.
| |
Required |
Gets and sets whether the field is required.
| |
TypeName |
Gets the name of the field type.
| |
UniqueID |
Gets and sets the unique ID of the Schema Field. Only effective in page creation for Element fields
|
Methods
Name | Description | |
---|---|---|
ChildProperty |
Gets a property of a child item of the field. Only applies to the List element field type.
| |
Property | ||
RemoveExport |
Removes a local exports entry if exists.
| |
Serialize |
Serialize this field into Ingeniux CMS XML schema format.
| |
SetChildProperty |
Sets a property of child item of the field. Only applies to List Element field type.
If child property with given name doesn't exist, will create a new child property.
| |
SetExport |
Sets a local exports entry.
If the entry exists, it updates its value. Otherwise, it creates a new entry.
| |
SetProperty |
Sets a property of the field. If the property with the given name doesn't exist, creates a new property.
|
Remarks
Normally one schema field corresponds to one page field. However there are exceptions:
A Group element in the schema consists of two fields: GroupStart and GroupEnd.
A List element may have multiple child elements, but in the schema, the List element and its children's properties are defined in one field.
See Also