Copied to clipboard

Flag this post as spam?

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


  • Enric León 19 posts 550 karma points c-trib
    Sep 12, 2013 @ 17:24
    Enric León
    0

    Deletion of DocType's properties on uSync 1.4.0 and Umbraco 6.1.3

    Hi,

    In the first place, I would like to say that this package is really cool. It carries out all the sync stuff and I only have to worry about content. Awesome.

    The only problem is that it's not working for me. I have two umbraco instances with version 6.1.3 installed. On both instances I have a document type named "TestDocType" and both instances have "read = true, write = false, attach = true" in their uSync config file.

    There is no synchronization between my two umbraco folders. Although I can see in the umbraco log that uSync is initialized on app pool recycle I can not see any change in my document types except in the case of addition.

    I want to achieve the following behavior: if I delete a property on the document type "TestDocType" through the umbraco backoffice this change will be reflected in the uSync folder. Then, if I grab this folder and I place a copy of it on my second umbraco instance the property should disappear.

    Is there any configuration that I am missing. Is this the expected behavior?

    Thanks.

  • Kevin Jump 2309 posts 14673 karma points MVP 7x c-trib
    Sep 12, 2013 @ 20:08
    Kevin Jump
    101

    yes - uSync is very conservative on delete (as in it doesn't do it). bit to worried that if it went wrong you could lose everything.

    However ... (one last thing)

    I've just added the code for deleting of property types to uSync and v 1.5.0 (now on our) allows you to turn on Property Deletion in DocTypes.

    so set the new setting

    <DocumentTypes DeletePropertyValues="true" />
    

    in uSyncSettings.config and uSync will perform a delete on any PropertyTypes that are not in the .def file on sync. so if you delete from one, it will delete from the other.

    this is set to false by default in the package, you have to turn it on.

    note uSync doesn't currently track things like renames / deletes of doctyypes as a whole so if you delete a whole doctype that doesn't get deleted from another installation .

    There are a couple of things that I did in uSync.ContentEdition that I am intending to bring back into uSync, and that should make renames / deletes possible in uSync.

Please Sign in or register to post replies

Write your reply to:

Draft