Number property

  • Updated

This topic describes the attributes of the Number property in Optimizely Content Management System (CMS) (SaaS), which stores integer or float numbers with minimum and maximum validation. It renders as a number input field in the All Properties and On-page edit views. The following image shows Number property type examples.

CMS SaaS number

Configure Number property

  • Name – Enter the name of this Number property type. This is used when programming and making language settings.
  • Type – Lets you change the content type to any other.
  • Number Type – Select one of the following:
    • Integer – Enter an integer. It looks similar to the following image when rendered in the All Properties and On-page edit views.

      Enter an integer

    • Floating point number – Enter a number with up to 15 numerals to the right of the decimal point. It looks similar to the following image when rendered in the All Properties and On-page edit views.

      Floating point number

  • Min value – (Optional) Enter a minimum number value that a user can enter. For example, you can ensure an entered number is not negative by entering 0.
  • Max value – (Optional) Enter a maximum number value that a user can enter. For example, you can ensure an entered number does not exceed 92.

    CMS SaaS number range

  • Value must be entered – Select to require the user to enter a value in a Number field. Required fields display a red asterisk (*).
  • Unique value per language – See Define language-specific properties.
  • List – Unavailable.
  • Property Indexing Type – Select one of the following to determine how the property is indexed for search. The correct setting to use depends on the nature of the data in the property and how you intend users to search and query data.
    • Default – Lets the system decide automatically how to index a property based on its type and context. For instance, string properties might be indexed in a default way to allow for full-text search, while date or number values may be indexed differently to allow for ranged queries.
    • Queryable – Indexes in a way to be part of search queries. For example, this indexing type lets you run a search query such as Find all pages where PropertyName equals Value.
    • Searchable – You can search data inside the property through the search function. For example, you can use it as part of a free text search where the system looks through searchable fields to find a match. This is useful when you want a content editor or end user to search a body of text, like a product description. It might be beneficial to avoid undesired property values in the search index. By default, all properties are searchable.
    • Disabled – The property is not indexed for searching purposes. It will not be used in search queries, nor will its content be searched. This is often used for properties that contain data irrelevant to search results, and disabling the index can enhance system performance.
  • Default value – Select the options to define what value the Number field displays.
    • No default value – The field is empty (no pre-populated content).
    • Inherits value – The field value is derived from another source. This is often used in hierarchical systems where child elements can inherit values from their parent elements. For example, a sub-page in a CMS might inherit some property values from its parent page.
    • Custom – Enter the field's default value. For example, you can set the default starting value for Degrees in Fahrentheit to 68.

      custom number

  • Display in edit view – Select to display this Number element on your page. Clear it to hide the number element while keeping all the property information.
  • Display name – Enter the text you want to display above the Number element on the page in the All Properties view.
  • Help text – If you want help text to display next to the Display Name, enter the text. The following image shows how help text displays.

    how help text displays

  • Sort index – Specify a value to determine the order in which data is displayed or processed.
  • Property Group – Select a property group (Categories, Content, Dynamic Blocks, Preview, Scheduling, SEO Settings, Shortcut) to organize your content in tabs in the All Properties edit view of the content type.

    All Properties edit view of the content type