Copied to clipboard

Flag this post as spam?

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


  • Kevin Meilander 82 posts 408 karma points c-trib
    Mar 09, 2021 @ 23:00
    Kevin Meilander
    0

    Override TinyMCE Link Logic for a language fallback

    Is it possible to override how link selected in the Rich Text Editor is rendered on the page to add fallback logic for language?

    For my editor, I have content saved as

    <a href="/{localLink:umb://document/392904c1a60d4d95a85aef0e2de119b1}" title="(Another page)">TEST</a>
    

    When rendering this content, Umbraco will look up the node based on the ID and then return the URL for the page in the user's language. However, if that language is not published for that page it simply returns a "#".

    I need to add fallback logic so if the page is not published in the user's language, it fallback to the English URL rather than "#".

    Is this possible?

Please Sign in or register to post replies

Write your reply to:

Draft