Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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
Hi Sonja
You can add query string in the Link field, like that:
Thanks,
Alex
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
You can use external link for internal nodes :))
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.
Alex, How do I create another Related Link Property editor? Where do I find existing one?
Sonja, have a look here:
\Umbraco\Views\propertyeditors\relatedlinks
Please, share how did you decide to fix it?
I didn't do changes in the relatedlinks, I have pre-prepared pages with querystrings and internal links and I'm redirecting there
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Changing Related Links
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
Hi Sonja
You can add query string in the Link field, like that:
Thanks,
Alex
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
You can use external link for internal nodes :))
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
Alex, How do I create another Related Link Property editor? Where do I find existing one?
Sonja, have a look here:
Hi Sonja
Please, share how did you decide to fix it?
Alex
I didn't do changes in the relatedlinks, I have pre-prepared pages with querystrings and internal links and I'm redirecting there
is working on a reply...