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
I have a carousel partial view that renders correctly but seem to have an issue with the internal link against the description. When the link is pressed it says :
Umbraco.Web.PublishedCache.XmlPublishedCache.XmlPublishedContent
I'm using the property converter package and this is my code:
@inherits Umbraco.Web.Mvc.UmbracoTemplatePage @using Our.Umbraco.PropertyConverters.Models @{ var promoItems = CurrentPage.PromoRepositories.First().PromoItems.Where("Visible"); } <!--promo slider html--> <div id="myCarousel" class="carousel slide"> <div class="carousel-inner"> @foreach (var item in promoItems) { <div class="@item.IsFirst("active") item"> <div class="slide"> <img src="@item.GetCropUrl("image","promoHome")" alt="@item.Name" /> <div class="promoinfo"> <a href="@item.GetPropertyValue("link")" class="btn btn-primary"><h3>@item.GetPropertyValue("Description")</h3></a> </div> </div> </div> } </div> <!-- Carousel nav --> <div class="carousel-control"> <a class="carousel-control left" href="#myCarousel" data-slide="prev"><span class="glyphicon glyphicon-chevron-left"></span></a> <a class="carousel-control right" href="#myCarousel" data-slide="next"><span class="glyphicon glyphicon-chevron-right"></span></a> </div> </div> <!--end promo slider html-->
Thanks
Rich
I think you need this:
@item.GetPropertyValue("link").Url
Assuming that "link" is a content picker?
That's the ticket.
Thanks Jeavon :)
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Partial view link issue with Property Converters 7.1.6
I have a carousel partial view that renders correctly but seem to have an issue with the internal link against the description. When the link is pressed it says :
I'm using the property converter package and this is my code:
Thanks
Rich
I think you need this:
Assuming that "link" is a content picker?
That's the ticket.
Thanks Jeavon :)
is working on a reply...