Publish for multiple audiences
By the end of this tutorial, you'll Publish a web site two versions of the same documentation from a single source — one for administrators and one for end users — using conditions and variables.
Before you begin
Familiarize yourself with Conditions vs. variables to understand when to use each
You need a project with at least one Create and organize a map — or be ready to create one during the tutorial
You'll create two Publication target settings, so confirm your Plans and limits supports multiple targets
What you'll build
A three-topic guide that shows admin-only content to admins and hides it from regular users. Variables swap out the product name and support URL so each audience sees their own values.
Set up conditions
Conditions define the dimensions along which your content varies.
Go to Filters in the sidebar.
Click New Dimension and name it "Audience."
Add two values: "Admin" and "End User."
Each value gets a distinct color — these colors appear in the editor to show which content is conditioned.
Set up variable sets
Variables hold values that differ between Publication target settings — like product names, URLs, or version numbers.
Go to Variables in the sidebar.
Create a Create variable sets called "Admin Edition."
Add these key-value pairs:
product_name→ "Acme Pro Admin Console"support_url→ "https://admin-support.acme.com"
Create a second variable set called "End User Edition" with:
product_name→ "Acme Pro"support_url→ "https://support.acme.com"
The two sets as JSON:
{
"product_name": "Acme Pro Admin Console",
"support_url": "https://admin-support.acme.com"
}Both variable sets must contain the same keys (product_name and support_url). If a key is missing from one set, the raw key name appears in the published output for that target.
Write conditioned content
Go to Topics and create a topic called "Dashboard Overview."
Write a paragraph that applies to everyone: "The dashboard shows your recent activity and key metrics."
Below it, write a paragraph intended only for admins: "The admin panel at the top provides access to user management, audit logs, and system configuration."
Select that admin-only paragraph.
Click the condition button in the toolbar.
Choose the "Audience" dimension and select "Admin."
The paragraph is now wrapped in a colored conditional block labeled "Audience: Admin." End users won't see it.
Insert variables
In the same topic, type "Welcome to " then place your cursor.
Type
/and select Variable. Pickproduct_namefrom the picker.A styled pill appears showing the variable key. At publish time, it resolves to the value from the selected Create variable sets.
Add another variable reference for
support_urlin a "Need help?" sentence.
You can also use the Editor slash commands /variable to insert a variable token without reaching for the toolbar.
Preview conditions in the editor
Click the eye icon in the editor toolbar to open Preview conditioned content.
Select "Audience: Admin" to see the full content including the admin paragraph.
Switch to "Audience: End User" — the admin paragraph disappears from the preview.
This lets you verify conditioned content without publishing.
Create two more topics
Create "Account Settings" — add general content plus an Admin-conditioned section about managing other users' accounts.
Create "Getting Help" — use the
support_urlvariable so each audience sees their own support link.
Build a map and publish two targets
Go to Maps and create a Create and organize a map called "Product Guide."
Add all three topics.
Create two publication targets:
Admin Docs (Web):
Condition profile: Audience = "Admin"
Variable set: "Admin Edition"
{
"Audience": ["Admin"]
}End User Docs (Web):
Condition profile: Audience = "End User"
Variable set: "End User Edition"
{
"Audience": ["End User"]
}Publish a web site both targets.
Compare the results
Open both published sites. The Admin version shows all content including the admin-only sections, with "Acme Pro Admin Console" as the product name. The End User version hides the admin sections and shows "Acme Pro" with the standard support URL.
Both sites are generated from the same source topics. When you update a topic, republishing updates both variants.
After editing a conditioned topic, always republish all targets that use that topic. If you only republish one target, the other targets show stale content until they're republished too.
What you learned
Conditions control which content blocks appear per audience, platform, or any dimension you define
Variables substitute different values (names, URLs, versions) per publication target
Preview conditioned content lets you check audience-specific content without publishing
Each publication target selects a condition profile and variable set
One source produces any number of output variants
Next: Collect feedback from reviewers to learn how to get subject matter expert input before publishing.
See also
Writing for multiple audiences — strategies and best practices for multi-audience content
Set up conditions — create dimensions and values used in this tutorial
Create variable sets — detailed guide to building variable sets
Publish a web site — full reference for web publishing
Troubleshooting — common issues with conditions, variables, and publishing