User Guides

Settings

Settings allow you to define options that you can use to customise your website in an unlimited number of ways.


Configuring Settings

If you've not already done so, it is recommended that you read the settings configuration section of the documentation.


Example Settings Configuration

The rest of this page assumes that you have the below settings defined. The examples beyond this point also assume that you are interacting with LexasCMS from within a template.

social:
  fields:
    - { name: "facebook", type: "text", title: "Facebook Page" }
    - { name: "twitter", type: "text", title: "Twitter Page" }
    - { name: "instagram", type: "text", title: "Instagram Page" }

Retrieving Settings

The following example shows how you would retrieve the 'facebook' setting and display it's value on a page:

{{ cms.settings.social.facebook.html() }}