Copied to clipboard

Flag this post as spam?

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


  • Jeavon Leopold 3072 posts 13628 karma points MVP 10x admin c-trib
    Oct 07, 2014 @ 23:49
    Jeavon Leopold
    0

    Umbraco v7.2 doc type composition support

    I know it's a little early but I have already started developing a website with the current v7.2 nightly which includes the new document type composition feature. Have you thought about how uSync will work with compositions yet?

  • Kevin Jump 2310 posts 14695 karma points MVP 7x c-trib
    Oct 08, 2014 @ 00:11
    Kevin Jump
    0

    Yeah - I've been looking at it - It shouldn't be two big a deal to add to the import and export process - at the moment I am still holding back - the last nightly i got didn't install properly : ) I will probably re-visit it in a week or two.

  • Jeavon Leopold 3072 posts 13628 karma points MVP 10x admin c-trib
    Oct 09, 2014 @ 14:05
    Jeavon Leopold
    0

    Cool! The current nightlies are pretty stable and I think very close to a beta release now ;)

  • Kevin Jump 2310 posts 14695 karma points MVP 7x c-trib
    Oct 10, 2014 @ 11:35
    Kevin Jump
    100

    OK, the latest uSync 'nightly' supports Composition

    https://github.com/KevinJump/jumps.umbraco.usync/tree/v2.x-Umbraco7.2/Package/uSync

    if you already have usync 2.2 installed you only need to update jumps.umbraco.usync.dll

    At some point the core exports will probably start to support composition too, and then the names might mismatch. but for now it works.

  • Jeavon Leopold 3072 posts 13628 karma points MVP 10x admin c-trib
    Oct 10, 2014 @ 22:35
    Jeavon Leopold
    0

    Wow, that's super awesome! Thanks Kevin!

  • Jeavon Leopold 3072 posts 13628 karma points MVP 10x admin c-trib
    Nov 27, 2014 @ 16:58
    Jeavon Leopold
    0

    Is this merged into the release yet?

  • Lewis 27 posts 90 karma points
    Dec 11, 2014 @ 16:53
    Lewis
    0

    would also be interested to hear if this is in the release?

  • Kevin Jump 2310 posts 14695 karma points MVP 7x c-trib
    Dec 11, 2014 @ 20:07
    Kevin Jump
    0

    The latest release works with 7.2 - as the composition support was put into the core API before release. So no uSync changes needed to make it work :-)

  • Jeavon Leopold 3072 posts 13628 karma points MVP 10x admin c-trib
    Dec 15, 2014 @ 11:00
    Jeavon Leopold
    0

    Great, thanks Kevin

  • Dan White 206 posts 510 karma points c-trib
    Jan 07, 2015 @ 00:09
    Dan White
    0

    I'm not sure how related this is, but I was just having issues doctype syncing. I was getting the following error:

    2015-01-06 14:14:04,153 [26] ERROR Umbraco.Core.UmbracoApplicationBase - [Thread 1] An unhandled exception occurred
    System.NullReferenceException: Object reference not set to an instance of an object.
      at jumps.umbraco.usync.uSync.RunSync()
      at jumps.umbraco.usync.uSync.DoOnStart()
      at jumps.umbraco.usync.uSync.OnApplicationStarted(UmbracoApplicationBase httpApplication, ApplicationContext applicationContext)
      at Umbraco.Core.CoreBootManager.<Complete>b__5(IApplicationEventHandler x)
      at Umbraco.Core.EnumerableExtensions.ForEach[TItem](IEnumerable`1 items, Action`1 action)
      at Umbraco.Core.CoreBootManager.Complete(Action`1 afterComplete)
      at Umbraco.Web.WebBootManager.Complete(Action`1 afterComplete)
      at Umbraco.Core.UmbracoApplicationBase.StartApplication(Object sender, EventArgs e)
      at Umbraco.Core.UmbracoApplicationBase.Application_Start(Object sender, EventArgs e)

    I took all the doctypes that depended on a composition out of the uSync folder and reloaded. That worked, so I added back in the types that depended on them and that worked. Could be something with the order doctypes are created?

    Hope this makes sense.

  • Matt 76 posts 280 karma points
    Feb 28, 2015 @ 00:26
    Matt
    0

    I had to rename my Composition Aliases to get this to work with the latest version.

    If you have a composition that starts with the letter S (like SEO) and you have a Doc Type that uses it (like Appelation), then the import from uSync fails as the SEO doctype does not exist when uSync tries to create the Appelation Doc Type.  Renaming the alias of the SEO doctype to aaSEO and re-exporting via uSync makes the import work.

    Regards,
    Matt 

  • Kevin Jump 2310 posts 14695 karma points MVP 7x c-trib
    Feb 28, 2015 @ 14:07
    Kevin Jump
    1

    Hi, 

    I've had some time to look at this now, and Its down to the order in which uSync imports the doctypes - with composites you have to ensure all teh composite types are in before you put any dependent types in. 

    So i've poked around the Umbraco source and aquired a better sort for usync

    I've released an update 2.4.9 - that does the sorting before import, so it now does this better.

     

  • Jeavon Leopold 3072 posts 13628 karma points MVP 10x admin c-trib
    Feb 28, 2015 @ 14:50
    Jeavon Leopold
    0

    That's awesome Kevin, I have noticed this issue but didn't have time to work out exactly what the cause was yet!

Please Sign in or register to post replies

Write your reply to:

Draft