Settings Plugin
The settings plugin allows access to site settings.
{{ settings:setting }}
Returns a setting value. Most are simply text strings edited via the settings tab in PyroCMS. Some, however, are boolean and use 1 for true and 0 for false.
For example, if you want to retrieve the mail_protocol setting value, you can use:
{{ settings:mail_protocol }}
Available Settings
| Setting | Notes |
|---|---|
| activation_email | 1 or 0. Send out an e-mail when a user signs up with an activation link |
| addons_upload | 1 or 0. Allow upload of Addons through admin. |
| admin_force_https | 1 or 0 |
| admin_theme | Theme slug |
| api_enabled | 1 or 0. For PyroCMS Pro version only. |
| api_user_keys | 1 or 0. Allow users to sign up for API keys (if the API is Enabled). For PyroCMS Pro version only. |
| auto_username | 1 or 0 |
| cdn_domain | |
| ckeditor_config | JavaScript format |
| comment_markdown | 1 (Markdown) or 0 (Text only) |
| comment_order | ASC (Oldest First) or DESC (Newest First) |
| contact_email | From email address on outgoing messages |
| currency | Currency symbol |
| dashboard_rss | |
| dashboard_rss_count | Number |
| date_format | PHP Date format |
| default_theme | Theme slug |
| enable_comments | 1 or 0 |
| enable_profiles | 1 or 0 |
| enable_registration | 1 or 0 |
| files_cache | Number |
| files_enabled_providers | Comma separated provider list |
| files_s3_geographic_location | US or EU |
| files_s3_url | Bucket URL with bucket |
| files_upload_limit | Number, in MB. |
| frontend_enabled | 1 or 0 |
| ga_profile | Google Analytics profile ID |
| ga_tracking | Google Analytics tracking ID |
| mail_protocol | |
| mail_sendmail_path | |
| mail_smtp_port | |
| mail_smtp_user | |
| meta_topic | |
| moderate_comments | 1 or 0 |
| records_per_page | Number |
| registered_email | 1 or 0. Notify users on register? |
| require_lastname | 1 or 0 |
| rss_feed_items | Number |
| server_email | |
| site_lang | Country code |
| site_name | |
| site_public_lang | Comma separated Country codes. Publicly supported languages. |
| site_slogan | |
| twitter_cache | Number |
| twitter_feed_count | Number |
| twitter_username | Twitter user handle without @ |
| unavailable_message | Site maintenance message |
