Repository navigation
1.0.0-beta.5
Pre-releaseFifth beta of the Content Sync Toolkit for Xperience by Kentico. You can now sync straight from the status lists, through Xperience's own Content Sync dialog, and choose the channel, workspace and language in the admin's top bar, as in the rest of Xperience. This release also corrects the Moved here advice from beta.4.
What's new
- Sync from the status lists. Each row has a Sync button, and selected rows have Sync above the list. Both open Xperience's own Content Sync dialog, the one Content hub uses, with immediate or postponed restore and Detailed selection. Only rows a sync would change can go (Unpublished, New, Changed, Moved, Reordered); a disabled button says why. The toolkit takes a Reordered page's siblings along, so the order on the target matches, and splits large selections into syncs of at most 200 pages or 1,000 content items. Rows in a running sync show Syncing, a failed sync shows a message at the top of the page, and each sync has an Event log entry. On Xperience versions without the dialog, such as 30.8.0, Sync asks for confirmation instead. Editors need Xperience's Synchronize permission; set
ContentSyncToolkit:SyncActionstofalseto keep the pages read-only. - Channel, workspace and language in the top bar. The lists use the admin's own dropdowns, as Content hub and the page tree do, instead of filter fields. Each list shows one language at a time, and first opens on the channel's primary language (Pages) or the default content language (Content hub). The lists remember your last choice per tab, and their addresses include it, so Back, Forward, bookmarks and shared links open the same list.
- Pending items only, on opening. The lists open with Hide items in sync applied (Xperience 31.2.0 or newer). Remove it to see every item, pending ones first.
- Which instances you're comparing. The top of the status pages shows this instance and the target, for example
localhost:27300 → localhost:27311. Name them withContentSyncToolkit:InstanceLabelandContentSyncToolkit:TargetLabel(for example "Staging" and "Production").
Fixes
- Moved here: Content Sync doesn't move items between workspaces. Beta.4 said that syncing a moved item from its new workspace moves it there on the target. It doesn't: the sync updates the item, but it stays in its old workspace on the target. The Moved here tooltip, its disabled Sync button and the Usage Guide now say to move it to the new workspace on the target yourself, and not to delete it there. In its new workspace the item no longer shows New: it's compared with the copy the target has in the old workspace, and its tooltip notes the move.
Upgrading
Update both instances. With a 1.0.0-beta.4 target, everything works except that an item moved to another workspace still shows New in its new workspace. The target's endpoint stays at schema version 5.
- One language at a time. Beta.4 listed every language at once, with a Language column. Each list now shows one language; switch it in the top bar.
- No Channel, Workspace or Language filters. They're in the top bar now. Old links to
/admin/content-sync/pagesand/admin/content-sync/content-hubstill work and open the default (or remembered) list. - Syncing needs Synchronize. Viewing still needs View on Content synchronization. To sync, editors need the same permission as Xperience's own Sync: Synchronize for Content hub in the item's workspace, and for pages the Synchronize page permission (with Read) or Manage permissions on the channel.
- The left menu. Switching in the top bar keeps Content synchronization's left menu through admin behavior that Kentico doesn't document. If a Kentico update breaks it (the left menu disappears after a switch), set
ContentSyncToolkit:FullReloadOnSwitchtotrueuntil the toolkit adapts.
Breaking changes (for code using the admin classes)
- The filter models lost
Channel,WorkspaceandLanguage, and the option providers for them are gone. The Pages and Content hub tabs takeChannelId/WorkspaceIdandLanguageNamefrom the address. ContentSyncStatusListingSupportlost the language column members (LanguageColumn,AllLanguagesLabel,IsAllLanguages,ShowsLanguageColumn,LanguageDisplayName).IContentInventoryClientandILocalContentInventoryServicehave a newGetContentHubItemsByGuidAsync, with a default implementation, so existing implementations still compile.
Code compiled against 1.0.0-beta.4 needs to be rebuilt.
Known limitation
On the Pages tab, the blue bar at the bottom of Xperience's Sync dialog is empty: Xperience fills it only for content items.
Installation
Install on both the source and the target:
dotnet add package XperienceCommunity.ContentSyncToolkit --prereleaseSee the Usage Guide for registration, configuration and giving editors access.
Compatibility
Xperience by Kentico 30.8.0 or newer, runtime-checked on 30.8.0 and 31.9.1. See the verification record.
This is a beta: APIs and behavior may change before 1.0.0.