within the "normal" uSync setup, no there isn't (other than doing something programmatically.
However the uSync.Exporter package which is part of uSync.Complete will package up all the content, dependencies and files (if needed) into a single 'sync pack' (.usync) file that can be moved between sites.
I'm using "normal" uSync setup. How can I update uSync codes. is it in umbraco folder or should I use uSync.core? I couldnt find any way to update codes in documantation.
If you want to do this programmatically, you will need to use the Umbraco ContentService to enumerate through all of your content and call the Serialize method of the ContentSerializer inside uSync.ContentEdition to get the XElement for each item.
You could then munge these XElements together into a single file
for importing you need to do the same in reverse, calling the Deserialize method on each item,
you would also need to pay attention to the level of each item, ensuring you import the pages at the lower levels before their children items.
importing is also two pass so you would need to call DeserializeSecondPass once everything has been processed.
*note this won't include media (only content) unless you do the same for media as above. uSync.Exporter has a dependency service that calculates the required media for content, streamlining this process
Can you do an example about your post? I have the same problema but i don't kwon how to call the serializer. I update the following method to umbraco 8.
uSync can I export all content in a single file
I'm using uSync 8.3.0 and uSync.ContentEdition 8.2.4
Is there any way pickup "all umbraco content" in a single xml file or json file?
Hi,
within the "normal" uSync setup, no there isn't (other than doing something programmatically.
However the uSync.Exporter package which is part of uSync.Complete will package up all the content, dependencies and files (if needed) into a single 'sync pack' (.usync) file that can be moved between sites.
Thanks Kevin for your answer.
I'm using "normal" uSync setup. How can I update uSync codes. is it in umbraco folder or should I use uSync.core? I couldnt find any way to update codes in documantation.
Hi
If you want to do this programmatically, you will need to use the Umbraco ContentService to enumerate through all of your content and call the Serialize method of the ContentSerializer inside uSync.ContentEdition to get the XElement for each item.
You could then munge these XElements together into a single file
for importing you need to do the same in reverse, calling the Deserialize method on each item,
you would also need to pay attention to the level of each item, ensuring you import the pages at the lower levels before their children items.
importing is also two pass so you would need to call DeserializeSecondPass once everything has been processed.
*note this won't include media (only content) unless you do the same for media as above. uSync.Exporter has a dependency service that calculates the required media for content, streamlining this process
Can you do an example about your post? I have the same problema but i don't kwon how to call the serializer. I update the following method to umbraco 8.
is working on a reply...