Hi all. I am still fairly new to umbraco and building my first website at the moment.
I have a bootstrap carousel with 6 slides that are displayed random on each page refresh, that works fine. Each of those slides are one big promo banner image which also needs to be a clickable link that has an anchor tag, which leads to more information on other pages. I have added a new property "related links 2" to the document type and referenced the anchor link tag where it needs to go. The link works fine when I go through umbraco, but when I click on it on the actual page I get a 404 error. When I hover above the image it says it's leading to Umbraco.Web.Models.RelatedLinks instead of the actual path of the link that was added in the property. hHere is my view code:
That didn't work Ole. I have followed umbraco documentation on related links2 and couldn't get it to work. What I did now was removed related links completely and added a simple textbox property to document type. I referenced a link path in the textbox and rendered it in my view like this:
a href="@bannerImage.DestinationUrl"
Simple as that and I can't see the use of related links now and why is that done so complicated for something this trivial?
Related Links2 404 Not Found error
Hi all. I am still fairly new to umbraco and building my first website at the moment.
I have a bootstrap carousel with 6 slides that are displayed random on each page refresh, that works fine. Each of those slides are one big promo banner image which also needs to be a clickable link that has an anchor tag, which leads to more information on other pages. I have added a new property "related links 2" to the document type and referenced the anchor link tag where it needs to go. The link works fine when I go through umbraco, but when I click on it on the actual page I get a 404 error. When I hover above the image it says it's leading to Umbraco.Web.Models.RelatedLinks instead of the actual path of the link that was added in the property. hHere is my view code:
Will you get an Url you do this on the snchor tag?
@bannerImage.BannerImageLink.First().Url
That didn't work Ole. I have followed umbraco documentation on related links2 and couldn't get it to work. What I did now was removed related links completely and added a simple textbox property to document type. I referenced a link path in the textbox and rendered it in my view like this:
a href="@bannerImage.DestinationUrl"
Simple as that and I can't see the use of related links now and why is that done so complicated for something this trivial?
is working on a reply...