Copied to clipboard

Flag this post as spam?

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


  • Sonja 133 posts 621 karma points
    Mar 29, 2019 @ 10:41
    Sonja
    0

    Hi

    I have Related Links field in the document type. How do I add an extra field to the related links that will be the querystring? It should be added as a single textbox and after I will concatenate it to the url. Can you give me an example please?

    Thanks

  • Alex Skrypnyk 6131 posts 23950 karma points MVP 7x admin c-trib
    Mar 29, 2019 @ 10:52
    Alex Skrypnyk
    1

    Hi Sonja

    You can add query string in the Link field, like that:

    enter image description here

    Thanks,

    Alex

  • Sonja 133 posts 621 karma points
    Mar 29, 2019 @ 10:56
    Sonja
    0

    Hi,

    I know this but if it is internal link than I can't add querystring. So I've been told that it has to be in the new field

  • Alex Skrypnyk 6131 posts 23950 karma points MVP 7x admin c-trib
    Mar 29, 2019 @ 10:58
    Alex Skrypnyk
    0

    You can use external link for internal nodes :))

  • Alex Skrypnyk 6131 posts 23950 karma points MVP 7x admin c-trib
    Mar 29, 2019 @ 11:01
    Alex Skrypnyk
    0

    Another way - add some code to the caption field, like [query=temp], then in rendering check this field and move [query=temp] to the url.

    Of course, it's not a perfect solution and you have to be aware on problems with this way of doing this.

    Another way is to create another "Related Link" property editor. Copy the existing one and add a needed field, it's should be easy.

    Thanks,

    Alex

  • Sonja 133 posts 621 karma points
    Mar 29, 2019 @ 11:14
    Sonja
    0

    Alex, How do I create another Related Link Property editor? Where do I find existing one?

  • Alex Skrypnyk 6131 posts 23950 karma points MVP 7x admin c-trib
    Mar 29, 2019 @ 13:12
    Alex Skrypnyk
    0

    Sonja, have a look here:

    \Umbraco\Views\propertyeditors\relatedlinks
    
  • Alex Skrypnyk 6131 posts 23950 karma points MVP 7x admin c-trib
    Apr 02, 2019 @ 22:06
    Alex Skrypnyk
    0

    Hi Sonja

    Please, share how did you decide to fix it?

    Alex

  • Sonja 133 posts 621 karma points
    Apr 03, 2019 @ 11:05
    Sonja
    101

    I didn't do changes in the relatedlinks, I have pre-prepared pages with querystrings and internal links and I'm redirecting there

Please Sign in or register to post replies

Write your reply to:

Draft