Editorial Workflow
Set up content review and approval processes for your team
Editorial workflow helps teams manage content through review and approval before publishing. Define who can create, edit, review, and publish content.
Workflow Overview
Draft → In Review → Approved → Published
| | | |
Author Reviewer Editor LiveSetting Up
Enable in TinaCloud
Editorial workflow is available on Team and Business plans.
- Go to TinaCloud dashboard
- Select your project
- Navigate to Settings > Editorial Workflow
- Enable the feature
Configure Draft Fields
Add a status field to your collection:
export const postsCollection = {
name: 'post',
label: 'Blog Posts',
path: 'content/posts',
fields: [
{
type: 'string',
name: 'title',
label: 'Title',
isTitle: true,
required: true,
},
{
type: 'string',
name: 'status',
label: 'Status',
options: [
{ value: 'draft', label: 'Draft' },
{ value: 'in_review', label: 'In Review' },
{ value: 'approved', label: 'Approved' },
{ value: 'published', label: 'Published' },
],
},
{
type: 'datetime',
name: 'publishedAt',
label: 'Publish Date',
},
],
}Filter by Status in Your App
Only show published content on your site:
const publishedPosts = await client.queries.postConnection({
filter: {
status: { eq: 'published' },
},
})Role-Based Permissions
| Action | Author | Reviewer | Editor | Admin |
|---|---|---|---|---|
| Create draft | Yes | Yes | Yes | Yes |
| Edit own content | Yes | Yes | Yes | Yes |
| Edit others' content | No | Yes | Yes | Yes |
| Submit for review | Yes | Yes | Yes | Yes |
| Approve content | No | Yes | Yes | Yes |
| Publish content | No | No | Yes | Yes |
| Manage workflow | No | No | No | Yes |
Combining with Branches
Editorial workflow works best with branch-based editing:
- Author creates branch:
content/new-feature-announcement - Author writes content, sets status to "In Review"
- Author creates PR to main
- Reviewer reviews PR, approves
- Editor merges PR → content published on main
Scheduled Publishing
Combine status with publish dates:
// Only show content that's published AND past publish date
const now = new Date().toISOString()
const posts = await client.queries.postConnection({
filter: {
status: { eq: 'published' },
publishedAt: { before: now },
},
})Notifications
Configure email notifications in Project Settings > Notifications. Enable triggers for:
- Content submitted for review
- Content approved
- Content published
Webhook notifications can also be configured in Project Settings > Webhooks.