Stop uSync from submitting content
# help-with-umbraco
t
Hi I'm using uSync and git as a repository. In a new site, I create a new document type and add a property. For this example I'll say I add a property called Number. I now create a page and assign number 1 to the Number property. Once I've checked in my files someone else downloads the current version, they run import and they also see number 1 as the value for this property. Is there a way to stop the happening or is this the default way uSync works with content? Thanks
j
If you just want to save settings (Umbraco schema etc.), and not the content itself, you can turn that off: https://docs.jumoo.co.uk/usync/uSync/guides/content More complex configurations are an option too, such as this, which disables synchronising content except for the DictionaryHandler, which will create missing entries only.
Copy code
"uSync": {
    "Sets": {
      "Default": {
        "DisabledHandlers": [
          "ContentHandler",
          "DomainHandler",
          "MediaHandler"
        ],
        "Handlers": {
          "DictionaryHandler": {
            "Settings": {
              "CreateOnly": true
            }
          }
        }
      }
    }
  },
k
We usually keep Content uSynced but never import it automatically. Then it's up to anyone who wants "shared" content to import it manually. And test/stage environments can be prefilled as well. The slight inconsistencies this can cause has never been a problem.
13 Views