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
How do i call a Content/Page in another Content/Page using Link picker in Umbraco? And i need to call a newsample page in some x page.
Do you want to render the pickers links to hyperlinks?
If so then the easiest way is to install this piece of wonder:
Umbraco Core Property Value Converters
Then you can easily get the value of the picker as an IEnumerable<IPublishedContent> like so:
IEnumerable<IPublishedContent>
var relatedLinks = Model.Content.GetPropertyValue<IEnumerable<IPublishedContent>>("relatedLinksDocTypeAlias"); foreach(var relatedLink in relatedLinks) { <a [email protected]" title="@relatedLink.Name">@relatedLink.Name</a> }
//casper
Yeah Thanks Casper.
Its working but how do i get an id of internal link page id using related links?
Hi Remprasad,
if you have the IPublishedContent you can just use it's id property.
relatedLink.Id
Then you have the id of the picked item.
Regards David
Yeah it worked , thanks david
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
How do i call a Content/Page in another Content/Page using Link picker in Umbraco?
How do i call a Content/Page in another Content/Page using Link picker in Umbraco? And i need to call a newsample page in some x page.
Do you want to render the pickers links to hyperlinks?
If so then the easiest way is to install this piece of wonder:
Umbraco Core Property Value Converters
Then you can easily get the value of the picker as an
IEnumerable<IPublishedContent>
like so://casper
Yeah Thanks Casper.
Its working but how do i get an id of internal link page id using related links?
Hi Remprasad,
if you have the IPublishedContent you can just use it's id property.
Then you have the id of the picked item.
Regards David
Yeah it worked , thanks david
is working on a reply...