Embeds overview
Embeds are pages of the Onboard admin site made to be shown inside an <iframe> on a club's own website. Visitors use them without leaving the club's site; members log in inside the iframe when they buy tickets or book.
| Embed | URL | Snippet in the admin |
|---|---|---|
| Membership signup | https://admin.onboard.blue/embedded/signup | yes |
| Events calendar | https://admin.onboard.blue/embedded/events/calendar | yes |
| Bookings calendar | https://admin.onboard.blue/embedded/bookings/calendar | yes |
| News | https://admin.onboard.blue/embedded/news | no |
Turn on embedding
Embeds only work for a club that allows them. A club admin turns this on in the Onboard admin:
- Choose the club and click Website in the menu.
- Under Embedded content, turn on Allow embedding?. The setting is saved at once.
- Copy the snippets that appear below the switch and paste them into the club's website:
- Embed the membership signup form on your website:
- Embed the event calendar on your website:
- Embed the bookings calendar on your website:
The Website page is available to clubs and partners that have the website module in their Onboard agreement, for admins with access to the club Profile. A club without the module cannot reach the switch and should contact Onboard at [email protected]. A club that has a website hosted in Onboard can use embeds even with the switch off, but the admin only shows the snippets while the switch is on.
See also the admin guide Website.
The snippet
Each snippet the admin generates has this form, with the club's ID filled in:
<iframe src="https://admin.onboard.blue/embedded/events/calendar?communityId=YOUR_COMMUNITY_ID" width="100%" height="720" frameborder="0"></iframe>
The club's ID is the communityId value in any of the snippets. You need it to build the news embed URL, which has no snippet.
Parameters for all embeds
| Parameter | Required | Values | Effect |
|---|---|---|---|
communityId | yes | a community ID | Whose content to show. Without it the embed does not load. |
theme | no | light, dark | Colour scheme. Without it the embed follows the visitor's device setting. |
lang | no | da, en | Language of the embed. Without it the embed is shown in English. |
Example of the events calendar in Danish with a light background:
<iframe
src="https://admin.onboard.blue/embedded/events/calendar?communityId=YOUR_COMMUNITY_ID&lang=da&theme=light"
width="100%"
height="720"
frameborder="0"></iframe>
theme and lang are read when the embed loads and stay in effect while the visitor clicks around inside the iframe. Set both explicitly so the embed matches the club's site regardless of the visitor's browser.
The ID of one of the club's groups also works as communityId. Whether embedding is allowed is then decided by the club's setting.
There are no other styling options: colours, fonts and layout come from Onboard.
Size the iframe
- The embeds do not resize the iframe or send messages to the parent page. Give the iframe a fixed height; content that does not fit scrolls inside it. The admin snippets use
height="720". - Use
width="100%". The embeds adapt their layout to the width of the iframe, not of the browser window. - Do not add a
sandboxattribute. The embeds need scripts, forms, their own storage for the login, and the ability to open payment pages.
Login and payments inside an embed
- A member who logs in inside an embed stays logged in for that browser tab only. The login is separate from the Onboard admin and app.
- Payments for event tickets and bookings open the payment page inside the iframe. The signup embed opens its payment page in the full browser window instead.
When an embed does not load
| What the visitor sees | Cause |
|---|---|
| An error page instead of the embed | communityId is missing from the URL, or the ID is not an Onboard community |
| An error page, or Not allowed in the embed | Embedding is not turned on for the club |