Skip to main content

Extended objects and types

When designing modules, layouts, and templates, their properties might need to refer to some specific content or have a pre-defined set of values.

Extended objects

The Content Picker and Picklist property types fulfill those needs.

Extended types

In addition to the basic types String, Int32, and Boolean, FORGE exposes three extended types that can be used to drive the configuration of components (modules, templates, and layouts) with dedicated editors on the Page Builder:

  • CmsUrl : Return a String representing an absolute or relative URL defined on the CMS. When defined, a type-ahead control is shown on the Page Builder, suggesting the site structure items that match the inserted terms.

  • CmsArray : Returns a list of String represented as a set of values specified by the user. This can be used in conjunction with the Content Picker to enable users to select a set of tags.

  • CmsMenuUrl : Returns a String representing a Menu item URL. When the MenuFile property is defined, it’s editable from the Page Builder.

    To use an extended type, you need to specify the keyword CmsUrl or CmsArray as the TypeName of the property you are defining on a module/template/layout.