Found something in the docs where this scenario is mentioned. I'm not sure I understand all of the three options for solving it though... but I've made my Meta partial inherit from the generic UmbracoViewPage now, and used the (less than optimal) Value() syntax instead - atleast it works now.
How do I handle Content from a PublishedContentWrapped viewmodel?
Hi friends 👋
I've got this (simplified) setup:
<IMeta>
model<SearchViewModel>
which is created as aPublishedContentWrapped
from aSearchPageController
.My problem is that when the MetaTags partial runs on the SearchPage, it throws the "Cannot bind SearchViewModel to IMeta" error...
What's the correct way to solve this?
/Chriztian
Found something in the docs where this scenario is mentioned. I'm not sure I understand all of the three options for solving it though... but I've made my Meta partial inherit from the generic
UmbracoViewPage
now, and used the (less than optimal)Value()
syntax instead - atleast it works now.is working on a reply...