Configuring Synchronization of Content Catalogs

SmartEdit introduces the synchronizationBlocked attribute in CMSItem, and the cmssyncuser session user. SmartEdit creates some SearchRestrictions.

The session user of SearchRestrictions is cmssyncuser and the query of SearchRestrictions is based on the synchronizationBlocked flag in the following items.
  • Draft page

  • Nonshared content slots on draft page

  • Components in nonshared content slots on draft page

  • Media related to components, which are in nonshared content slots on draft page

  • Restrictions related to draft page

  • Restriction related to components, which are in nonshared content slots on draft page

To make SearchRestrictions and synchronization correction work, the following tasks must be completed:
  • cmssyncuser must be imported as the Content Catalog sync job sessionUser:
    # Use the impex to improt CatalogVersionSyncJob with ssessionUser
    INSERT_UPDATE CatalogVersionSyncJob; code[unique=true];sessionUser(uid);
    ;sync example-ContentCatalog-A:Staged->Online;cmssyncuser;
    ;sync example-ContentCatalog-B:Staged->Online;cmssyncuser;
    
  • the sync attribute descriptor config of your Content Catalog sync job must be updated:
    # Update the SyncAttributeDescriptorConfig of Content Catalog sync job         
    INSERT_UPDATE SyncAttributeDescriptorConfig;syncJob(code)[default=synjobName][unique=true][path-delimiter=!];attributeDescriptor(enclosingType(code),qualifier)[unique=true];includedInSync;copyByValue[default=false];presetValue;translateValue[default=false];untranslatable[default=false]
    ;sync example-ContentCatalog-A:Staged->Online;AbstractCMSComponent:slots;false
    ;sync example-ContentCatalog-A:Staged->Online;SimpleCMSComponent:containers;false
    ;sync example-ContentCatalog-B:Staged->Online;AbstractCMSComponent:slots;false
    ;sync example-ContentCatalog-B:Staged->Online;SimpleCMSComponent:containers;false