Closed ttdac closed 1 year ago
Hi,
The Publisher stuff, is in a slightly different location. uSync:Publisher:Handlers
.
Its also worth noting that while all these settings are theoretically possible, its not something we fully support, in general it should work, but you might find that you get false positives in that usync reports changes that are not changes because things are missing.
Note we have extra DisabledHandlers because internally uSync will add the content handlers to disabled, but once you choose to set the list of disabled handlers, uSync will no longer do that, and if you don't disable the content one then for content saved values will be pushed and published, vs the Published values which is the default value.
"uSync": {
"Publisher": {
"Handlers": {
"DisabledHandlers": [ "ContentHandler", "ContentTemplateHandler", "DomainHandler" ],
"Handlers": {
"PublishedContentHandler": {
"Settings": {
"RulesOnExport": true,
"Exclude": "Path/To/Exclude",
"ExcludeContentTypes": "siteConfig"
}
}
}
}
}
}
Many thanks, it is working now! FYI I couldn't find these options on the docs.
Describe the bug I need to exclude content data type from sync and can't make it work. I already tried
Exclude
andExcludeContentTypes
options fromappsettings.json
.Version (please complete the following information):
To Reproduce I only need to use Snapshots and Publisher.
Expected behavior Exclude the content doc type
siteConfig
I'm using on this project from sync.