Skip to documentation
McDocs

Documentation

Globals

Share site-wide CSS, JavaScript and simple values across Resources.

Globals are shared values, styles or small enhancements used by other site Resources.

Shared styles and behaviour

Use a Global when several Resources need the same site-specific styling or behaviour. Keep it focused so changes do not unexpectedly affect unrelated areas.

Shared values

Globals can also provide values that need to be reused in several places. Do not place passwords, private keys or other credentials in a public Global.

When to avoid a Global

If something is used in only one Component, Header or Template, keep the change with that Resource instead of making it site-wide.