Embeds
News embed
Embed a club's published Onboard news posts on its website as a grid of cards.
The news embed shows a club's latest published news posts as cards. Visitors click a card to read the full post inside the iframe.
URL
https://admin.onboard.blue/embedded/news?communityId=YOUR_COMMUNITY_ID
| Parameter | Required | Default | Description |
|---|---|---|---|
communityId | yes | The club (or group) whose news to show | |
columns | no | 3 | Number of columns, 1–4. Values outside the range are clamped. |
postCount | no | 6 | Number of posts, 1–24. Values outside the range are clamped. |
theme | no | light or dark, see Embeds overview | |
lang | no | da or en. Also sets the language of the dates. |
Snippet
The admin does not generate a snippet for the news embed. Take the club's ID from one of the other snippets on the Website page (the communityId value) and build the iframe yourself:
<iframe src="https://admin.onboard.blue/embedded/news?communityId=YOUR_COMMUNITY_ID&columns=3&postCount=6" width="100%" height="900" frameborder="0"></iframe>
Embedding must be turned on for the club, as for the other embeds — see Embeds overview.
What the visitor sees
- A grid of cards, most recently created post first. Each card shows the post's first image, its release date (or creation date), title, the first 150 characters of the text and a Read more button.
columnssets the number of columns on wide iframes. The grid always shows one column below 768 px; from 768 px it shows at most two; the fullcolumnsvalue applies from 1024 px.- Clicking a card opens the post inside the iframe with its image, title, author, date, number of likes and full text. Back returns to the grid with the same
columns,postCount,themeandlang. - There is no paging: the embed shows the latest
postCountposts only.
The embed shows every published post, whatever visibility the post has in Onboard — including posts set to members only. Clubs that write members-only news should not use the news embed.