Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at

  • j0w 31 posts 202 karma points
    Apr 24, 2019 @ 18:10

    questions about uSync.ContentEdition

    Hello there,

    So, taking a step further in uSync. I'm trying uSync.ContentEdition to export/import content between environments.

    As far as I tried for now, it exports all of the content, including data. i.e : if I have a "Home" page with a title, and a description wich I fill with lorem, it will export the lorem too.

    So question is : is there a way to export the page, with it's doctypes structure, but not the data stored in fields? So I could import all the site structure in Staging environment, but with no fake data so the site would be all good to setup with the real data without having to clean everything before ?

  • Kevin Jump 1753 posts 11263 karma points MVP 4x c-trib
    Apr 25, 2019 @ 08:45
    Kevin Jump


    There is no inbuilt way in uSync to separate the pages from their content, you could in theory run the resulting .config files through something to remove all the properties.

    so the content is stored in the properties of a .config file.

      <footerAddress><![CDATA[Umbraco HQ - Unicorn Square - Haubergsvej 1 - 5000 Odense C - Denmark - +45 70 26 11 62]]></footerAddress>
      <footerCTACaption><![CDATA[Read All on the Blog]]></footerCTACaption>

    maybe you could do some xslt thing (not my strong point at all) to remove the values ? so you ended up with something like :


    but this would only work if the properties weren't mandatory, as putting blank values in would likely make the save process fail when it validated the content.

Please Sign in or register to post replies

Write your reply to: