Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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?
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?
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.
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.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted