A community is switched on per channel. This page covers turning it on, the settings, and how to make the community pages look like the rest of your site.
Turn it on
In the dashboard
Open the channel, then Community, then Enable community. The same page later holds the settings, Members, Moderation and the Audit log.
Over MCP
enable_community with the channel ID and a display name. Later changes go through update_community; get_community shows the current settings. archive_community switches the community off; members and posts are kept.
The settings
| Setting | What it does |
|---|---|
| Display name, tagline | Shown at the top of the board. |
| Welcome message | HTML shown on the community home. |
Posts are readable without joining (isPublic) | On: anyone can read published posts. Off: the board, and every post, are visible to members only. |
| Post policy | Decides whether a new post is published at once or held for approval. See Moderation queue and post policy. |
| Pre-approval threshold | Used by one policy only (pre_approval_new): how many of a new member's posts are held. Default 3. |
| Default role | The role a person gets when they join. |
A channel's site password does not cover the community. To restrict who can read it, turn off Posts are readable without joining.
How the community pages look
By default the community pages (board, post, post form, join, profiles) use OmniCon's built-in design.
Using your own layout
A channel with custom layouts can put its community inside one of them, so the community has the same header, footer, partials and registered CSS and JavaScript as the rest of the site.
- Write a layout (or reuse your site layout) that contains
{{{community.content}}}where the page should go. OmniCon renders the board, post, form, join or profile page and places it there, with its forms and security tokens intact. - Bind it: Theme → Community pages in the dashboard, or
update_channel_layout_bindingswithdefaultCommunityLayoutIdover MCP. - Custom layouts must be switched on for the channel.
A minimal layout:
<!doctype html>
<html lang="{{site.cultureCode}}">
<head>
<meta charset="utf-8">
<title>{{community.title}} | {{channel.name}}</title>
{{{theme.cssBlock}}}
{{{community.styles}}}
{{{assets.head}}}
</head>
<body>
{{> site-header}}
<main>{{{community.content}}}</main>
{{> site-footer}}
{{{assets.bodyEnd}}}
</body>
</html>
| Token | What it is |
|---|---|
{{{community.content}}} | The community page itself. Required, once. |
{{{community.styles}}} | Optional. The stylesheet the built-in community markup is written for. Leave it out to style the markup with your own CSS. |
{{community.name}}, {{community.tagline}} | From the community's settings. |
{{community.url}} | Address of the board. |
{{community.title}} | The current page's title, for <title>. |
{{community.page}} | board, post, post-form, join, member or profile. |
Things to know:
- One layout wraps every community page. Branch on
{{community.page}}if a page needs something different. - The forms are OmniCon's. Posting, joining, replying, liking and moderation keep their own markup; a layout cannot change or break them. To restyle them, target the wrapper: the content sits in
<div class="omni-community omni-community--board">(the last part is the page name). - Assets:
{{{assets.head}}}and{{{assets.bodyEnd}}}load the assets that apply to every page. Assets scoped to a folder or a tag are for article pages and are not loaded on community pages. - If the layout fails (a syntax error, a missing partial), visitors get the built-in community page, and the error is shown on the Theme page.
- The same layout can serve your articles and your community: wrap the community part in
{{#if community}} … {{/if}}.
Checklist: from nothing to an approved post
- Enable the community and choose
pre_approval_newwith a threshold of 3. - In another browser, sign in as a different user and join.
- Write a post. Expect "Submitted for review".
- As the owner, open Moderation: the post is listed. Approve it.
- Reload the board: the post is there.
- Check the Audit log shows the submission and the approval.
- As the member, open the post, write a reply and press Like. Reload: the reply and the like are still there. Press Like again: the count drops.