Here is the Code for the Menu Item (Redirect to PDf L:ink using Multi Url Picker)
if (children.HasValue("pDFLink")) //pdflink is my allias name of multi url picker
{
MultiUrls links = children.GetPropertyValue<MultiUrls>("pDFLink");
Link linkProperty = links.FirstOrDefault();
if (linkProperty != null)
{
<li><a class="@linkProperty.Name" href="@linkProperty.Url">@children.Name</a></li>
<br />
}
else
{
<li><a class="@children.Name" href="#">@children.Name</a></li>
}
}
MultiUrl Picker
Link to document is not changing as per the uploaded pdf
Hi Sagar,
What exactly do you mean? What link should change?
CHeers
My Menu link should be the pdf's link (it should redirect to the pdf)
Hi Sagar,
You need to get Url from media object. Do you store media id in the picker? Try this code:
Cheers, Alex
Hi Alex i was using Multi Url Picker and I had Solved it By Myself
Thanxx, For the Reply Alex....
Here is the Code for the Menu Item (Redirect to PDf L:ink using Multi Url Picker)
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.