Copied to clipboard

Flag this post as spam?

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


  • Brian 30 posts 171 karma points
    Sep 04, 2020 @ 19:18
    Brian
    0

    Adding Packages and Package Assets to uSync

    Hi Support,

    I recently deployed a large update to a client's site which included many redirects and a blog conversion (from WordPress to Articulate).

    As stated above, the blog package I'm using is Articulate and the redirects package is Skybrud.Umbraco.Redirects. Aside from uSync I have no other packages installed.

    Once the sync was complete (from dev to staging), all the blog content migrated, however, the Articulate Themes folder (listed under Third Party in the Settings Page subnav) and the redirects were absent from staging.

    Manually migrating the Articulate theme wasn't a big deal but there were about 300+ redirects that needed to be re-entered on staging.

    How would I go about integrating these items (along with any packages I may install down the road) with uSync?

    I believe both are open source so I can create my own forks of them but would prefer not to as it'll break the update support.

    Thank you,

    Brian

  • Kevin Jump 2342 posts 14889 karma points MVP 8x c-trib
    Sep 04, 2020 @ 20:55
    Kevin Jump
    100

    Hi,

    I haven't looked at the redirect package for this - but i am guessing it would need a uSync handler/serlialzer to read/write the redirects to disk.

    serializers take whats in the db and turn it into XML and handlers read/write the xml to disk and handle what happens when people save / delete things (so they listen for the events).

    for example the language serializer turns the language settings into xml https://github.com/KevinJump/uSync8/blob/v8/dev/uSync8.Core/Serialization/Serializers/LanguageSerializer.cs

    the handler triggers when someone saves or deletes a language. https://github.com/KevinJump/uSync8/blob/v8/dev/uSync8.BackOffice/SyncHandlers/Handlers/LanguageHandler.cs

    They are not super simple ☹ (because they plumb into Umbraco quite a bit) - but you can extend uSync without having to alter the core code, because it will discover classes that impliment ISyncHandler or ISyncSerializer and add them to the process when syncing things.

  • Brian 30 posts 171 karma points
    Sep 29, 2020 @ 21:41
    Brian
    0

    Hi Kevin,

    I just saw that there was a response to this thread, sorry for the delay.

    What you described above is a bit beyond what I'm able to do with this project but may attempt it on a larger build.

    Thank you for your explanation of what's needed to integrate uSync with other packages.

    Take care,

    Brian

Please Sign in or register to post replies

Write your reply to:

Draft