Hi,
I have a content picker on one of my document types. The plan is to pick a blog post to link to from another page outwith Articulate.
When I try and display the link, all I get is the node id.
Is it possible to link to the blog post and if so, how would I go about it.
I'm wondering if it's possible to use the node id in some way to find the relevant blog post and popular a url.
Content picker to link to a blog post
Hi, I have a content picker on one of my document types. The plan is to pick a blog post to link to from another page outwith Articulate. When I try and display the link, all I get is the node id.
Is it possible to link to the blog post and if so, how would I go about it.
I'm wondering if it's possible to use the node id in some way to find the relevant blog post and popular a url.
Thanks, Owain.
how are you trying to "display the link" ?
Hi Shannon, I just tried with a the Umbraco field name.
Which brings back 1709 as the node id.
Hi Owain,
Try to see the documentation about how to the the link url from a content picker.
https://our.umbraco.org/Documentation/Using-Umbraco/Backoffice-Overview/Property-Editors/Built-in-Property-Editors-v7/Content-Picker
Hope this helps,
/Dennis
Yes, a content picker will only return an ID, that is normal thing with how Umbraco works.
You need to take that Id and get the IPublishedContent item for it which will give you the URL:
Thanks guys!
Now have that working perfectly. Wrapped it in an If statement so it only shows if I've made a selection with the content picker as well.
is working on a reply...