Copied to clipboard

Flag this post as spam?

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


  • Søren Linaa 255 posts 208 karma points
    Dec 15, 2020 @ 13:06
    Søren Linaa
    0

    Link attributes in rich text editor

    Hi,

    I'm struggling with some weird things. When I insert a link in my rich text editor it translate the value fine. But the href gets updated with the frontpage document id and title

    <trans-unit resname="html" id="html_49" datatype="Html">
                      <source><![CDATA[<p>Dansk tekst med et link <a href="/{localLink:umb://document/10b3682a676c4b02963764538ebec825}" title="Priser">læs mere her</a></p>]]></source>
                      <target><![CDATA[<p>English text with a link <a href="/{localLink:umb://document/10b3682a676c4b02963764538ebec825}" title="Prices">Read more here</a></p>]]></target>               
     </trans-unit>
    

    The result is this link Wrong title and wrong document

    <p>English text with a link <a href="/{localLink:umb://document/2189c97c8b0f428c8b5671015cc84726}" title="/da/">Read more here</a></p>
    

    Umbraco: v8.9.1 TM: 8.4.2

  • Kevin Jump 2341 posts 14868 karma points MVP 8x c-trib
    Dec 15, 2020 @ 13:22
    Kevin Jump
    0

    Hi,

    when you approve a translation - translation manager will run all links through its link updater. that will attempt to find the relevant link on the translated site.

    e.g if you have a "prices" page on both the main and translated site, all links to the main prices page will be updated to the translates site prices page.

    except it does look like thats not working here - it might be because the link between the prices page on the main site and the translated site doesn't exist ? or isn't part of the translation set?

    are you doing in place(so using variants) translations or do you have a site structure for each language?.

  • Søren Linaa 255 posts 208 karma points
    Dec 15, 2020 @ 14:11
    Søren Linaa
    0

    Hi Kevin,

    It's a variant translation.

    My job only contain one page - Do I need to include all linked pages to the job ?

    Is the default behaviour to show the root node if the link updater fails ?

  • Kevin Jump 2341 posts 14868 karma points MVP 8x c-trib
    Dec 15, 2020 @ 18:52
    Kevin Jump
    100

    Hi,

    the default behavior should be not to change the link if it finds not relation, i suspect there is another relation between the prices node that is being picked up and used.

    If you don't need link updating (i.e all your pages are in the variant setup) you can turn it off. in translations.config (config section)

    <config>
      <links>
        <pickers>False</pickers>
        <inline>False</inline>
      </links>
    </config>
    

    (will require site restart once you've edited this file)

    or you can look at 'fixing' the relationships by using the Linked Pages package which will show you want related links exist between pages. https://our.umbraco.com/packages/backoffice-extensions/linked-pages/

  • Søren Linaa 255 posts 208 karma points
    Dec 16, 2020 @ 10:01
    Søren Linaa
    0

    Hi Kevin,

    Thanks - It worked beautifully :-)

  • Kevin Jump 2341 posts 14868 karma points MVP 8x c-trib
    Dec 16, 2020 @ 10:30
    Kevin Jump
    0

    🎉 Woot!!

Please Sign in or register to post replies

Write your reply to:

Draft