The global component makes a global record available to the page, layout or partial. The global component can be used on any page, layout or partial.
The following properties are supported by the component.
| Property | Description |
|---|---|
| handle | The handle of the global blueprint. |
The following adds a global using the handle Blog\Config to the page. The component is assigned a name of blogConfig using the component alias and this is the variable name that becomes available to the page. The page access the about_this_blog text field and displays it on the page.
[global blogConfig]
handle = "Blog\Config"<p>{{ blogConfig.about_this_blog }}</p>