Publish content programmatically
The ContentService is also used for publishing operations.
The following example shows a page being published with all descendants.
The PublishBranchFilter
option can include one or more of the following flags:
Default
- publishes existing published content with pending changes.IncludeUnpublished
- publishes unpublished content and existing published content with pending changes.ForceRepublish
- publishes existing published content with or without pending changes.All
- combinesIncludeUnpublished
andForceRepublish
.
Last updated