to the top of your View, that particular error should go away!
To save adding this reference at the top of every View or Partial View, if you look inside your /Views/Web.Config file there is a section for namespaces that are used in Views, and you can add Umbraco.Web.Models here...
Rendering Multi URL Picker inside Nested Content
Hi,
Im working on an Umbraco 8.3 project where I need some editable links in the footer of a page. The links need to be sorted into grouped columns.
I've set up the group part of it using Nested Content, but i'm having issues getting the links out.
Here is what I have so far,
It would be great if anyone had any ideas on what i'm doing wrong. Im not a developer so apologies if its something obvious!
Thanks
Hi Andy
Are you getting any errors? or are the links just not showing?
Broadly what you have appears correct, or at least at a glance, I might rejiggle things around like this:
But be good to know what is not working for you to advise further.
regards
Marc
Hi Marc,
Sorry, I should have posted the error too!
I get the same error when I use your updated code too.
Thanks for your help!
Hi Andy
Cool we just need to tell the partial view where the definition for the Link class is coming from.
https://github.com/umbraco/Umbraco-CMS/blob/v8/contrib/src/Umbraco.Web/Models/Link.cs
So if you add the namespace
@using Umbraco.Web.Models
to the top of your View, that particular error should go away!
To save adding this reference at the top of every View or Partial View, if you look inside your /Views/Web.Config file there is a section for namespaces that are used in Views, and you can add Umbraco.Web.Models here...
regards
Marc
Doh! I knew it would be something simple.
Thanks so much for your help!
is working on a reply...