Guides
Choose who sees a page, version, block or part
Load when restricting page or form access, showing different content at one URL, or reviewing hidden and audience versions.
Use the smallest rule that fits. Use the label, group, any, all and exclusion keys in customers.
| Need | Tool | Takes effect |
|---|---|---|
| Restrict a page or form | set_page_access or set_form_access | Immediately |
| Show different content at the same link | set_version_audience | Immediately |
| Restrict one block | set_block_audience | At go live |
| Restrict or date-limit a free-page element | set_part_audience with selector, or data-bb-show in HTML | At go live |
| Restrict or date-limit one block text, image or button | set_part_audience with key | At go live |
Build and check the views
- Create each hidden version with
start_edit_session(new: true,name) and edit its copy. Staff can also make named versions in the editor. Uselist_hidden_versionsto find them. Go live only with the version the person named. - Read
get_page_accessfor the CMS Manage Access view in one call. It gives status, access in words and count, the closed view, first-match audience versions and counts, staff-only hidden versions, and rules/counts for blocks and parts. Useversion_idfor that version’s blocks. Checkview_page_asfor each audience. Passas(signed_out, label:, group:, customer:) anddevice(app or web) to see public, version or locked and why. A customer id gives the step-by-step check and, for signed-in staff,open_as_link. Show counts. Requestlist_hidden_versionswithcards: truefor version/public counts only when asked.
Combine words in one data-bb-show value to require every condition. Hidden blocks and parts are removed on the server before reaching the phone.
data-bb-show="labels:1,2"
data-bb-show="labels-all:1,2"
data-bb-show="not-labels:3"
data-bb-show="groups:4"
data-bb-show="groups-all:4,5 not-groups:6"
data-bb-show="signed-in"
data-bb-show="signed-out"
data-bb-show="app"
data-bb-show="web"
data-bb-show="show-from:2026-12-01T09:00:00Z hide-from:2026-12-24T18:00:00Z"Review versions after public changes
Delete a version with discard_edit_session and recover it within 24 hours with restore_hidden_version. Use the CMS for group versions in the editor sidebar and the site’s “Try as a user” bar.