Copied to clipboard

Flag this post as spam?

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

  • Dimitris Chrysomallis 23 posts 137 karma points
    Jan 18, 2018 @ 11:53
    Dimitris Chrysomallis

    Extending uSync to handle Relations and RelationTypes

    I am using Relations extensively in one of our websites for handling i18n. The problem is that Relations are not being handled by uSync.

    What does it take to extend uSync in order to handle Relations? I looked up uSync.Core and I suspect that some core classes would have to be modified (e.g. uSyncContext). Any guidelines or suggestions?

    Thanks Dimitris

  • Kevin Jump 1515 posts 9722 karma points MVP 3x c-trib
    Jan 18, 2018 @ 13:18
    Kevin Jump


    Yes it could be extended to handle relations.

    Most things usync export have two elements, a Serializer and a Handler.

    The serializer is the thing responsible for getting the settings in and out of umbraco - Some of the seralizers are more complex than others - but the Domain Serializer is probably a good example of how they might work *Generally Serializers live in uSync.Core.

    Handlers manage the IO for uSync - reading and writing things from disk, and acting on the events that are triggered in umbraco (like when you save a datatype). the Language Handler probably shows the simpliest way this works. Handlers usually live in uSync.BackOffice or uSync.ContentEdition

    Relations could be added into this structure, or indeed they could be added as an extension, (there is no reason why the serializer/handlers have to be in the core or backoffice projects) - i suppose the real question i've had is where relations sit - most of the time they are content relations (although they can be something else) - So i would suppose relations would be part of ContentEdition?

  • Dimitris Chrysomallis 23 posts 137 karma points
    Jan 18, 2018 @ 14:19
    Dimitris Chrysomallis


    Since Relations could relate more than Content nodes, why not a separate package? Anyway, I will have to look more closely at your code to understand the uSync api first. I hope to find the time to write a minimal extension for this.

    Thank you for your fantastic work.

  • Aron Lakatos 4 posts 24 karma points
    Jun 14, 2018 @ 06:12
    Aron Lakatos

    Dear Dimitris,

    Looks like we are in the same boat, we'd like to use uSync on an i18n website for handling relations between localized pages.

    I was wondering if you managed to make a head start on this by any chance. We'd be glad to chip in and complete the feature together if you are still up for this.

    Thanks Aron

Please Sign in or register to post replies

Write your reply to: