Marketpath CMS has several standard site settings. Some impact site behavior and others are accessible from within templates. You can also define custom site settings that may make it easier for content editors or non-technical users to make changes.
Marketpath CMS Sites have the following standard, pre-defined fields.
You can add any type of field as a custom site setting. These will all appear after a site's standard properties.
Custom site settings are useful for a variety of purposes. Perhaps the most obvious purpose is to define content that is re-used across the site without having to define it on each page individually or hard-code it into the template. This makes it easier for content editors to modify it without requiring excessive edits or touching template code.
One of the major benefits of custom site settings is that they can be exported and imported between sites - making templates easier to port between sites. Instead of hard-coding your site-wide values directly into a template you would define a custom site setting. Each setting would be used within its templates and exported along with other site assets.
Here are some simple custom site setting examples. There is no best practice recommendation on which you should add, however. What you added is based on you and your content editors preferences.
To add custom site settings, go to Develop -> Custom Site Settings. Each site setting must have a unique Name. The Name is used when referencing the site setting within templates. Two ways to reference a custom site setting are shown below.
{{ site.settings['some setting'] }} {{ site.my_setting }}
ProTip: Prefix your site settings using a short "unique" abbreviation that makes sense to you in order to decrease the likelihood that someone else imports a custom site setting onto the site with the same name (eg: there may be multiple "show_twitter" settings, but only one "mjbb_show_twitter" setting).
Please fill out the form below with your feedback or any questions you may have after working through the "Custom Site Settings" lesson.