Copied to clipboard

Flag this post as spam?

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

  • Murray Roke 503 posts 966 karma points c-trib
    Nov 01, 2012 @ 11:36
    Murray Roke

    ICustomTypeConvertor List

    If anyone has handy ICustomTypeConvertor for popular packages ... uComponents? Damp? etc or for other handy uses. Could we make this a thread to collect and share and link to them all?



  • Stephen 47 posts 270 karma points
    Nov 01, 2012 @ 12:02

    Lee has set up a project for uComponents convertors  I've got some code for MNTP and Textstring array which I need to find the time to tidy up and contribute to this project.


  • Chris Parkinson 39 posts 73 karma points
    Nov 01, 2012 @ 17:49
    Chris Parkinson

    I created one for the Widget Grid package (

    It returns all the node ids as a strongly typed list of Nodes.

  • Lee Kelleher 4020 posts 15802 karma points MVP 13x admin c-trib
    Jul 17, 2013 @ 11:56
    Lee Kelleher

    Bumping up an old topic... is this something we are still interested in?

    The side-project I did for uComponents didn't get much love - as in I did the UrlPicker data-types only because I needed them.  Recently I've been needing converters for the native data-types (e.g. Content/Media pickers) - to which I keep reinventing the wheel (rewritting from scratch).

    I'm happy to set-up a project to gather other ICustomTypeConvertors from the community ... but only if we think it's worth it. :-)

    Cheers, Lee.

  • Murray Roke 503 posts 966 karma points c-trib
    Jul 17, 2013 @ 12:28
    Murray Roke

    i got burned when these didnt lazy load and when they didnt preview right, but if those issues are solved then yes.

  • Murray Roke 503 posts 966 karma points c-trib
    Jul 21, 2013 @ 22:53
    Murray Roke

    These issues relate to the official release of uSiteBuilder 1.2, I'm not sure about uSiteBuilder Admin or other builds.

    I think the preview issue was a general one with DocumentTypeBase in general rather than type converters. (I'll ask Peter Greggory to comment, he discovered these issues)

    Regarding the lazy loading the issue here is that all type converters run eagerly when any DocumentTypeBase is instantiated by uSiteBuilder, so using these objects for lists is where this blows out the most.

  • Peter Gregory 408 posts 1614 karma points MVP 3x admin c-trib
    Jul 22, 2013 @ 01:03
    Peter Gregory

    Its been a while since I looked at this but the preview issue had to do with where uSite Builder gets its cached content from.  It was bypassing the Umbraco built in cache loader and going directly for the XML file on disk.  This meant that it would always only get the published content and not pick up that user might have the site in preview mode.

    The fix was pretty simple.  The problem was in the ContentHelper on line 342 (of version 1.2 at least)

    It currently in uSiteBuilder is 

    XmlNode node = content.Instance.XmlContent.GetElementById(nodeId);

    Which bypasses the preview hooks.

    Changing it to use the Umbraco way

    XmlNode node = UmbracoContext.Current.GetXml().GetElementById(nodeId);

    Fixes the problem.

    Hope that helps.

Please Sign in or register to post replies

Write your reply to: