We have a v13 site with uSync Complete v13.2.1. We’d like to use uSync Complete/Publisher for pulling content from the production environment back to our test environments. There is one node (and its subnodes), however, in the first level of the site structure that we want to “be left alone”, i.e. not be changed when we pull content from another environment.
The site structure is
Home
--Test pages
--Some area 1
--Some area 2
...
We want to pull content on the “Home” level, but “Test pages” should be left unchanged.
I know that it’s possible to disable the deletion of any nodes that don’t exist on the environment, we’re pulling from, but I want to disable updates for “Test pages” and its subnodes completely.
It seems that it might have been possible in earlier versions of uSync, but not any longer?
The setting’s are still there they are just in a bit of a different place (appsettings.json). but also you want to do this for publisher which has it’s own set of settings that are different from the core ones - so they are in an even more different place
and it behaves a little differently (and if I am honest not 100% intuitively)
You can stop a site importing anything by setting the exclude on the handler.
Because you want to do this with publisher, you have to set it in the PublishedContentHandler under the publisher settings
if you do this on the servers then even though the a site might try and push / pull a content page between the sites when it actually comes to the import bit it won’t be imported by the site.
this is a little bit less then ideal because in the push/pull dialog you will see the content at the report stage, but you won’t then actually see it imported if you continue.
Because uSync publisher works out what content is to be pushed/pulled differently then uSync’s core processes and it doesn’t go through the settings checks when it fetches the content to export. so on the first bit of the push/pull it will pickup your test pages as a thing to go across.
but when the actual import event happens the rules are hit, and it’s not imported. so It’s a little bit confusing but it does work!
When I Pull content on the node MyTestPage on Server 1 to get the changes from Server 2 (and select “Delete missing items”), I’d expect uSync to NOT delete Subpage 3 since that node is under the path that I excluded in my uSync settings - but it does - both in the report and in actuality when I run the Publisher import.