Bridgeline Digital Logo
Menu

Attribute Types

When authoring Content Templates for use with OrchestraCMS, it is important to ensure the correct data type is being used for each Attribute on the page.  Attributes get saved in an array.  The type value should be one of the appropriate values from the included list.

ce.content_editor('registerSaveFunction', function() {
    var attributes = new Array();
    attributes.push({name: 'myAttribute', value: $('#myAttribute').val(), type: 'Text', lang: ''});
});

The following list defines the attribute types available through OrchestraCMS. Where applicable, attribute types should be separated by a space.

Attribute Type Description Example Usages
Boolean A value that can only be assigned true, false, or null. Checkboxes
Date A value that indicates a particular day. Unlike Datetime values, Date values contain no information about time. Date Selector
Date Time A value that indicates a particular day and time, such as a timestamp. Date/Time Selector
Double A 64-bit number that includes a decimal point. Doubles have a minimum value of -263 and a maximum value of 263-1. Numbers larger than an Integer with decimal points
Id Salesforce ID (15 or 18 digit). A Salesforce record ID
Id List List of Salesforce IDs. Multiple Salesforce record IDs being saved as a single attribute
Integer A 32-bit number that does not include a decimal point. Integers have a minimum value of -2,147,483,648 and a maximum value of 2,147,483,647. Numbers without decimal points
Link Links to files, images, media. Page Selector Widget
Link List List of Links. Multiple links being saved as one attribute
Long A 64-bit number that does not include a decimal point. Longs have a minimum value of -263 and a maximum value of 263-1. Use this data type when you need a range of values wider than the range provided by Integer. Numbers larger than an Integer without decimal points
Rich Text Allows users to enter formatted text, add images and links. Up to 131,072 characters on separate lines. CKEditor
Text Allows users to enter any combination of letters and numbers. Text Field
 
No validation of data is performed by OrchestraCMS.