Copied to clipboard

Flag this post as spam?

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


  • Fant0hm 20 posts 161 karma points
    Apr 24, 2019 @ 18:10
    Fant0hm
    0

    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 1423 posts 9135 karma points MVP 3x c-trib
    Apr 25, 2019 @ 08:45
    Kevin Jump
    100

    Hi,

    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.

      <colorTheme>1</colorTheme>
      <font>1</font>
      <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 :

      <colorTheme></colorTheme>
      <font></font>
      <footerAddress></footerAddress>
      <footerCTACaption></footerCTACaption>
    

    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:

Draft