"Umbraco.Web.Models.RelatedLink' does not contain a definition for 'Value'"
Hi there,
I am having an issue with a page on my site. I have taken over the site from an external development company who have left me to it. So any help is greatly appreciated.
The error i am getting is 'Umbraco.Web.Models.RelatedLink' does not contain a definition for 'Value''
Without knowing a bit more about your setup it's hard to suggest a definite fix.
The version of Umbraco you're using is important as some changes have been made to the Related Links datatype during the life of Umbraco 7. It would also be useful to see the rest of the View here, particularly the using statements at the top.
It shows some useful links and examples on how to query the Related Links datatype.
The short answer is that your code is using dynamics, when you might have more luck using strongly typed objects. The forum post above covers that as well.
"Umbraco.Web.Models.RelatedLink' does not contain a definition for 'Value'"
Hi there,
I am having an issue with a page on my site. I have taken over the site from an external development company who have left me to it. So any help is greatly appreciated.
The error i am getting is 'Umbraco.Web.Models.RelatedLink' does not contain a definition for 'Value''
And the lines in question are as follows;
Thank you in advance and if I have broken any forum rules in this I apologise.
Without knowing a bit more about your setup it's hard to suggest a definite fix.
The version of Umbraco you're using is important as some changes have been made to the Related Links datatype during the life of Umbraco 7. It would also be useful to see the rest of the View here, particularly the using statements at the top.
But have a look at this forum post:
https://our.umbraco.com/forum/templates-partial-views-and-macros/85224-umbraco-76-rc-related-links-umbracowebmodelsrelatedlink-does-not-contain-a-definition-for-link-or-for-isinternal
It shows some useful links and examples on how to query the Related Links datatype.
The short answer is that your code is using dynamics, when you might have more luck using strongly typed objects. The forum post above covers that as well.
Hope this helps,
Chris
is working on a reply...