---
schema_version: "1"
id: 951f0718a794fe7de6edba28ba3a1c85540e0f83d20eb8a55d816a26f5a7e10c
title: Setting Up Custom Properties
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/platform/264-0-0/siteforce_custom_prop_setup.md
canonical_url: https://help.salesforce.com/s/articleView?id=platform.siteforce_custom_prop_setup.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 654151aa6865f58cebecd3c7396af134f4a4e0bf450d43568d145e800b9b02bc
description: 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.
products:
  - Salesforce Platform
  - Security
release: "264"
---
# 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.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition">
        <colgroup>
          <col>
        </colgroup>
        <tbody>
          <tr class="">
            <td class="slds-cell-wrap" style="vertical-align:top;">Available in: Salesforce Classic</td>

          </tr>
          <tr class="">
            <td class="slds-cell-wrap" style="vertical-align:top;">
              <p>Available for purchase in: <strong>Enterprise</strong>, <strong>Performance</strong>,
                and <strong>Unlimited</strong> Editions</p>
              <p style="margin-bottom:0;">Available (with limitations) in:
                <strong>Developer</strong> Edition
              </p>
            </td>

          </tr>
        </tbody>
      </table> <table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small permission">
        <colgroup>
          <col style="width:50%">
          <col style="width:50%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="colgroup" class="slds-cell-wrap" colspan="2" style="text-align:center;vertical-align:top;" id="d64648e74">User
              Permissions Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d64648e74 ">To build, edit, and manage Site.com sites:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d64648e74 ">
              <p><samp class="parmname">Site.com Publisher User</samp> field enabled on the
                user detail page</p>
              <p>AND</p>
              <p style="margin-bottom:0;">Site administrator or designer role
                assigned at the site level</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d64648e74 ">To edit only content in Site.com sites:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d64648e74 ">
              <p>
                <samp class="parmname">Site.com Contributor
                  User</samp>
              </p>
              <p>AND</p>
              <p style="margin-bottom:0;">Contributor role assigned at the
                site level</p>
            </td>

          </tr>
        </tbody>
      </table>

To reference a site custom property in custom code or a content block, use the syntax {!Site.expression\_name}}. For example, create a custom property to store the company phone number with PhoneNumber as the expression name. In a content block, enter Contact us at {!Site.PhoneNumber}. When the page loads, it replaces the value that is represented by {!Site.PhoneNumber} and displays “Contact us at 1-800-667-6389” on the page.

![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-extend_click-264-0-0-production-enus/5f7d9219-b7b1-4552-8891-f1aba9b289fc/images/icon_note.png)

Note The expression names are case-sensitive!

1. Open a website element such as a code block or widget.
2. Locate the place where you want to insert the expression.
3. Type {!
    
    to see the list of available custom properties.
4. Select the property and double-click to enter it on the page.

![Example](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-extend_click-264-0-0-production-enus/5f7d9219-b7b1-4552-8891-f1aba9b289fc/images/icon_example.png)

Example Setting up custom properties is great for things that might change over time such as your address or a particular product phrase. Because expressions are just placeholders, if you update the value of a property in the Custom Properties view, the value is updated automatically wherever the custom property is referenced on a page.

#### See Also

- [Custom Site Properties Overview](https://help.salesforce.com/s/articleView?id=platform.siteforce_prop_custom_overview.htm&release=264.0.0&type=5 "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.")
- [Create Custom Site Properties](https://help.salesforce.com/s/articleView?id=platform.siteforce_custom_prop_create.htm&release=264.0.0&type=5 "You can quickly create Custom Properties that can be reused by editors of your site.")