Studio JSON examples
Open the page you want to change, then select Source. The first three
examples below replace only the value of its composition field. Keep the
page's other fields, including its titles, slug, group and access settings.
Replacing all of Source with a composition alone is invalid. See the
full page format.
Replacing composition removes its existing components. Keep any sections and
instances you still need. Versions
can load an earlier version if needed.
A homepage with live club information
Open Home, or whichever page you chose as your homepage. This composition shows an introduction, upcoming events, current games and sponsors. Live components read your current club records and keep their positions when empty. Current games and sponsors require Premium.
{
"version": 1,
"sections": [{
"id": "welcome-band",
"appearance": "plain",
"instances": [
{
"id": "welcome-hero",
"component": {
"type": "cio-hero", "version": 1,
"heading": {"en": "Welcome to our club", "fr": "Bienvenue au club"},
"body": {"en": "Ask us how to get started.", "fr": "Demandez-nous comment commencer."},
"media": null,
"actions": [{"label": {"en": "Contact us", "fr": "Nous joindre"}, "href": "/contact"}]
},
"layout": {"span": 12, "presentation": "standard"}
},
{"id": "upcoming-events", "component": {"type": "cio-recent-events", "version": 1}, "layout": {"span": 6, "presentation": "contained"}},
{"id": "current-games", "component": {"type": "cio-current-games", "version": 1}, "layout": {"span": 6, "presentation": "contained"}},
{"id": "club-sponsors", "component": {"type": "cio-sponsors", "version": 1}, "layout": {"span": 12, "presentation": "standard"}}
]
}]
}
Text beside rental availability
Open the page that needs rental information. The text takes two thirds of the desktop grid and availability takes one third. At tablet width they each take half; at phone width they stack. Empty filters include every eligible rental. Use your club's product and resource IDs to narrow the availability.
{
"version": 1,
"sections": [{
"id": "rental-band",
"appearance": "surface",
"instances": [
{
"id": "rental-introduction",
"component": {"type": "cio-text", "version": 2, "heading": "Book a visit", "body": "Choose an available time to practise with your team."},
"layout": {"span": 8, "presentation": "contained"}
},
{
"id": "rental-availability",
"component": {"type": "cio-rentals", "version": 1, "productIds": [], "resourceIds": []},
"layout": {"span": 4, "presentation": "contained"}
}
]
}]
}
A newsletter and an Instagram profile
Replace these placeholder accounts with your own. Use the Mailchimp identifiers from your audience's signup form and your club's public Instagram profile URL. Provider access and plan requirements still apply.
{
"version": 1,
"sections": [{
"id": "community-band",
"appearance": "plain",
"instances": [
{
"id": "newsletter-signup",
"component": {
"type": "cio-mailchimp-signup", "version": 1,
"account": "example.us1", "userId": "0123456789abcdef0123456789abcdef",
"audienceId": "0123456789", "emailFieldName": "EMAIL",
"nameFields": [{"name": "FNAME", "label": "First name", "required": false}], "formId": null
},
"layout": {"span": 6, "presentation": "contained"}
},
{
"id": "club-instagram",
"component": {"type": "cio-instagram-profile", "version": 1, "profileUrl": "https://www.instagram.com/example.club/"},
"layout": {"span": 6, "presentation": "contained"}
}
]
}]
}
A navigation menu
Open Navigation from Studio's list. This example is a menu array, not a page
composition. It links to Home, an Articles group, Contact, Calendar and Rentals.
Use an existing group's URL name for groupSlug. Group entries use the group's
name and order, with a More link when additional pages remain and the index
is published.
[
{"type": "route", "id": "home", "route": "home", "label": null},
{"type": "collection", "id": "news", "collection": "pages", "groupSlug": "articles", "label": null, "recentLimit": 3},
{"type": "route", "id": "contact", "route": "contact", "label": null},
{"type": "route", "id": "calendar", "route": "calendar", "label": null},
{"type": "route", "id": "rentals", "route": "rentals", "label": null}
]
Keep each menu entry's id unique, using 1 to 64 lowercase letters, digits,
underscores or hyphens. A route accepts home, contact, calendar or
rentals. Adding or removing Calendar here changes its menu link; the calendar
page remains available.
A group menu entry holds a label and children, which are leaves rather than
nested groups. A record leaf links to a specific existing record with its
recordType and recordId. An external leaf uses a complete HTTPS href and
a required label. The menu allows up to 24 root entries, 24 leaves per group
and 64 entries in total. Public links still follow publication and access rules.
Confirm a navigation change only when the source is ready: it applies publicly immediately. Page compositions instead use Save and Publish.
Choose your website theme
Select your theme in Website > Themes. It applies to your public website and administration area immediately, without publishing.