Copied to clipboard

Flag this post as spam?

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


  • Sander van de Pas 62 posts 122 karma points
    Dec 15, 2015 @ 10:37
    Sander van de Pas
    0

    Use of Rich Text Editor in Vorto Datatype

    I've created a Vorto datatype with a Rich Text Editor datatype as wrapper, see attachment.

    To get this value, I use the following code (in combination with Models Builder):

    return this.GetVortoValue<IHtmlString>("block4Text", fallbackCultureName: "en-US");
    

    It retuns all the content fine, but when I use an internal link in the editor, it will not be rendered as normal link but still as locallink:

    <a href="/{localLink:1214}">FAQ</a>
    

    And when I'm clicking on that link I will get an error on that page en the url looks like this:

    www.site.com/%7BlocalLink:1214%7D
    

    Is this a well known issue or does somebody have the solution to resolve this?enter image description here

  • Matt Brailsford 2284 posts 11100 karma points MVP 6x c-trib
    Dec 15, 2015 @ 10:49
    Matt Brailsford
    0

    I don't know much about the models builder, but as a work around you could pass the value through TemplateUtilities.ParseInternalLinks(html) which will parse and convert any internal links.

  • Sander van de Pas 62 posts 122 karma points
    Dec 15, 2015 @ 11:34
    Sander van de Pas
    0

    Thanks for your reply Matt, but I don't think it's a Models Builder issue, but the way Vorto handles an IHtmlString.

    The workaround works fine, but is not very clean to use.

    Hopefully there will be a better solution ;-).

  • Matt Brailsford 2284 posts 11100 karma points MVP 6x c-trib
    Dec 16, 2015 @ 13:50
    Matt Brailsford
    0

    You might want to try using the nightly, as I've made some big changes lately which might resolve this (haven't tested though)

    https://ci.appveyor.com/project/mattbrailsford/umbraco-vorto/build/artifacts

    Matt

Please Sign in or register to post replies

Write your reply to:

Draft