Preferences
See the config-artifact guide for how to add, register, and deploy preference files. This page covers how to name and organise them.
Preference file names
Section titled “Preference file names”Preference files live flat in configuration/preferences, are always .xml, and
their names follow a fixed scheme that tcli lint enforces:
prefs_<scope>_<action>[__<target>][___<category>].xml<scope>is one ofsite,group,role, oruser.<action>is one ofoverrideormerge.<target>is the group, role, or user the preferences apply to. It is required forgroup,role, anduserscopes and omitted for site, since site preferences have no target.<category>is optional and, when present, is appended after a triple underscore (___). We recommend splitting preference files by category to avoid huge single files.
Everything after prefs_ is lower_snake_case.
Valid examples:
prefs_site_override.xmlprefs_site_merge.xmlprefs_site_override___aw.xmlprefs_group_override__engineering.xmlprefs_group_merge__engineering.xmlprefs_role_override__designer.xmlprefs_user_merge_infodba.xmlprefs_group_override__engineering___general.xmlCustom preferences
Section titled “Custom preferences”Custom preference definitions are named in PascalCase and may optionally
carry a project prefix.
Group custom preferences into custom categories. If you add a custom general
preference, for example, create a dedicated category such as General Custom.
Better still, be explicit and name the category after the customisation the
preference belongs to.