I'm using the Datatype related links in umbraco 7.
With item.Url (when I iterate the list), I directly get the nice url. But I also need to have a look into the node, related to that nice url. So how can I achieve this? GetNodeByUrl / GetNodeByName? I didn't find this function in V7, but I'm sure they hide somewhere... please help. :)
Related Links - get Node to internal Link
Hi,
I'm using the Datatype related links in umbraco 7.
With item.Url (when I iterate the list), I directly get the nice url.
But I also need to have a look into the node, related to that nice url.
So how can I achieve this? GetNodeByUrl / GetNodeByName? I didn't find this function in V7, but I'm sure they hide somewhere... please help. :)
Hi Thomas,
Did you see the documentation for the related links property editor. You can find it here: http://our.umbraco.org/documentation/Using-Umbraco/Backoffice-Overview/Property-Editors/Built-in-Property-Editors-v7/Related-Links
Hope this helps,
/Dennis
There it was.
@item.Value<int>("internal") did the job.
Thank you for the quick support!
Hi Thomas,
You´re welcome. Great that I could help you to get on the track to find how to do it.
/Dennis
is working on a reply...