You push a page through workflow, publish it, and components come up empty. The page is approved, but its datasource items are still sitting in Draft, so they don't publish.
The fixLink to this section
Add a Datasource Workflow Action to your page workflow so approving the page approves its datasources too.
Step 1: Find the Approve command
In the content tree, go to System › Workflows › your page workflow › Awaiting Approval › Approve.
Step 2: Insert the action
Insert a Datasource Workflow Action item under Approve and fill in its fields:
- Type string:
Sitecore.XA.Foundation.Editing.Workflow.ApplyForDataSourceItemsAction,Sitecore.XA.Foundation.Editing - Command item: your datasource workflow's Draft › Approve command
- Scope:
Descendants
- Type string:
Now approving the page approves its datasource items in the same step, and everything is ready for a single publish.