The builder
Variables and dynamic text
Putting a visitor's own details, their answers to a form, or an entry's values into any text with tokens such as {{userEmail}}, {{CVUserPlan}} and {{item.title}}.
How a token works
A token is a name in double braces. Type it into any text, link address, image address, table cell or graph label or value, and the website fills it in for each visitor before the page reaches them. In the builder you see the token itself (a graph counts it as 0 until then).
| Token | Filled with | Who sees a value |
|---|---|---|
| {{userEmail}} | The signed-in member's email address. | Signed-in members. |
| {{isUserEmailVerified}}, {{isUserMfaEnabled}} | true or false. | Signed-in members. |
| {{CVUserPlan}} (your member variables) | The member's value, or the variable's default. | Signed-in members. |
| {{CVFormColour}} (a form question's variable) | What the visitor answered in a form with that Variable Name. | Visitors who aren't signed in: kept in their own browser. |
| {{item.title}}, {{item.url}}, {{item.slug}} | The entry's values on a collection page or card. | Everyone who may see the entry. |
| {{siteName}}, {{year}} | Filled once when a website is made from a website template. | Everyone. |
The Variables panel
Drag a variable onto the canvas for a text holding its token, or type its tag (like {{token}}) inside any element with text.
- Collection Fields
- On a collection page: each field's token with its label and type, plus The entry's address and The entry's slug. Copy buttons.
- Siteho's tab
- Member fields and your member variables, searchable. Marked Signed-in visitors only where that applies.
- Forms
- Select a form... to see the variables its questions save.
In the app: Builder › Elements › Variables
When there is no value
- Member variables
- The variable's default value, then an empty text.
- Collection fields
- The field's default value.
- Signed-out visitors
- Member tokens stay as they are: show them only to members with Role Visibility.
A greeting on the profile page
Worked example: Hello, and your plan
- In Member Variables, add Plan (CVUserPlan) with the default Free.
- On /profile, add a Text: Signed in as {{userEmail}} · Plan: {{CVUserPlan}}.
- Set the Text's Role Visibility to Logged In Users Only.
- A member with no plan of their own reads Plan: Free.
Ideas to try
- A form asks Your first name with Variable Name firstName; the thank-you overlay says Thanks, {{CVFormFirstName}}.
- A link button whose address holds {{item.url}} on every card.
- A badge reading {{CVUserLevel}} member in the header, for members only.