I have related links that I need to render the page name of internal linked pages. I know you can use something like "item.Link" and get the full path of an internal link but is there a way to just get the name of the page? Like if I used .Link I would get something like "/home/products/paint". I want to just get the last part of that link "paint". I know you can use captions but we want to make it easier for content creators so they don't have to fill that out, and it also leaves less room for spelling errors. Any help with this would be appreciated I couldn't find the answer to this when searching online.
Can you render page name using related links?
I have related links that I need to render the page name of internal linked pages. I know you can use something like "item.Link" and get the full path of an internal link but is there a way to just get the name of the page? Like if I used .Link I would get something like "/home/products/paint". I want to just get the last part of that link "paint". I know you can use captions but we want to make it easier for content creators so they don't have to fill that out, and it also leaves less room for spelling errors. Any help with this would be appreciated I couldn't find the answer to this when searching online.
Hi Andrew
What Umbraco version are you using? Are Value converters disabled in your solution?
If Value converters are disabled checkout code example from the doc - https://our.umbraco.com/documentation/getting-started/backoffice/property-editors/built-in-property-editors/related-links#mvc-view-example---value-converters-disabled
You can get picked node with this code:
And the name:
Thanks,
Alex
I ended up using a multinode tree picker instead. Thank you for the response and the information I appreciate it!
is working on a reply...