Custom Site Properties Overview

With custom site properties, you can define and store frequently occurring content on your site. For example, you can store your address and phone number as a custom property so that it can be reused by anyone who is editing your site. You can apply stored properties to pages, headers and footers, and widgets quickly by using expression language syntax.

Required Editions

Available in: Salesforce Classic

Available for purchase in: Enterprise, Performance, and Unlimited Editions

Available (with limitations) in: Developer Edition

To use custom properties in your website, you must:

  1. Define the custom property. You complete this task from Custom Properties within Site Configuration.
  2. Use expression language syntax to replace the current definitions for these properties within your Cascading Style Sheets or custom code blocks.

After you create a new property and specify its value and type, you can access the property in custom code or content blocks by using expressions. Expressions are placeholders for data that will be replaced with the custom property when the page loads.

  • Create Custom Site Properties
    You can quickly create Custom Properties that can be reused by editors of your site.
  • Setting Up Custom Properties
    You can use custom properties in your website by using expression language syntax within a style sheet, code block, widget, or the HTML page editor.
  • Custom Properties for Page Templates or Widgets Overview
    When you create a page template or a widget, you can add custom properties to it and specify the value and type of each property to achieve greater flexibility over how templates and widgets are reused.
  • Add Custom Properties to Page Templates or Widgets
    When you create a page template or a widget, you can add custom properties to it and specify the value and type of each property.
  • Custom Property Types
    Property types are available when designers or site administrators create site branding properties, site custom properties, widget branding properties, and widget custom properties.