Copied to clipboard

Flag this post as spam?

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


  • kurt-richter 2 posts 32 karma points
    Jul 15, 2020 @ 17:27
    kurt-richter
    0

    uSync Used With uSkinned - Import Causing Duplicate Components Folders

    We're using Umbraco with uSkinned installed.

    uSkinned will automatically cause Umbraco to create a "Components" folder underneath every new page created. The components folder will hold the components (web parts) that go on that particular page.

    I've been using uSync.ContentEdition to migrate content from one environment to another environment. In doing so, on the destination environment after doing the import, the components folder under every page is getting duplicated. The end result being that there is an empty "Components" folder and a "Components (1)" folder with the copied components. The desired result is as it was on the source environment, a "Components" folder with the copied components.

    There is only one components.config per page in the uSync/v8 folder on the disk, so it's not being duplicated because there are duplicate config files.

    What I think is happening is the following:

    1. uSync loops through the .config files one at a time.
    2. uSync starts with copying the parent page, which automatically creates a Components folder on the destination environment with the creation of the new page.
    3. uSync copies over the child Components folder filled with components from the source, but the Components folder already exists on the destination environment, so it creates a second copy, renames it, appending "(1)" to the name.

    Is there a way to prevent this, whether it be a tweak in uSync or uSkinned, such as turning off the automatic creation of the Components folder during the import?

  • MB 108 posts 397 karma points
    Jul 16, 2020 @ 02:34
    MB
    100

    I'm also a uSkinned user, and I'm reasonably familiar with how this works.

    The automatic create of the Components folder(s) when a page is created happens in their BusinessLogic handler which they make available in App_Code, that subscribes to the various Content events.

    I haven't actually used any of the uSkinned V8 versions yet, but in the sample I played with they had a function in there: CreatePageComponentsFolder()

    I guess that temporarily exiting there on the target site will stop the creation of the empty folders.

  • kurt-richter 2 posts 32 karma points
    Jul 17, 2020 @ 15:17
    kurt-richter
    0

    Thanks, MB. I think that did the trick!

Please Sign in or register to post replies

Write your reply to:

Draft