Models Builder custom property not defined in view file
Hi,
I have a models builder class that I have extended to include a filter class which compiles and is accessible within my controller.
However when I go to the page I get :
CS1061: 'RenderModel<ArticleListing>' does not contain a definition for 'Filters' and no extension method 'Filters'
accepting a first argument of type 'RenderModel<ArticleListing>' could be found (are you missing a using directive or an assembly reference?)
Models Builder custom property not defined in view file
Hi,
I have a models builder class that I have extended to include a filter class which compiles and is accessible within my controller.
However when I go to the page I get :
Visual studio also tells me this only in the view
Partial class definition:
Thanks
Matt
Not too sure but UmbracoViewPage instead of UmbracoTemplatePage when you don't need dynamics?
Thanks :) Works perfectly missus my other failings
Matt
Also, if you did use UmbracoTemplatePage then this....
needs to be
Just for future reference :-)
On UmbracoTemplatePage the actual model you define is located on Model.Content as Model is the RenderModel.
is working on a reply...