Component-Specific Parameters
Name |
Options |
Description |
align
|
left right
|
Shifts the copy to the left, middle, or right. Use the option best suited to
let the subject of your background image show through. |
General Component Parameters
The following parameters can be used when including any shared partial.
Name |
Options |
Description |
editModeOnly
|
true
|
If set to
true, the component will only appear in Edit Mode. This is useful
for testing your component before you want to make it live. |
main
|
true
|
If set to
true, a <main></main> element will apply
to the component. |
scope
|
page site
|
If set to site, content in the editable regions of the component will apply sitewide to any component with the same name and instance number that is also set to scope: "site" . |
Code Example
{% render "components/wvu-profile-hero-w-border" %}
PRO TIP: Options that contain integers (1, 2, 3
) or boolean values (true, false
) don’t need to be wrapped in quotes e.g. limit: 1
or main: true
. Strings should be wrapped in quotes e.g. scope: "site"
.
Setup
From the CleanSlate Pages dashboard, assign the Super Template to a page. In
the page properties, navigate to the Slots tab. Assign a profile-hero-w-border
partial
to one of the slots.
Component-Specific Configuration
Name |
Options |
Description |
Align
|
left right
|
Shifts the copy to the left, middle, or right. Use the option best suited to
let the subject of your background image show through. |
General Component Configuration
The following options can applied to any component in a slot.
Name |
Options |
Description |
Edit Mode Only
|
checked unchecked
|
If
checked, the component will only appear in Edit Mode. This is useful
for testing your component before you want to make it live. |
Is Main
|
checked unchecked
|
If
checked, a <main></main> element will apply
to the component. |
Sitewide
|
checked unchecked
|
If checked, content in the editable regions of the component will apply sitewide to any other component with the same name and instance number that is also set to “Sitewide”. |