Nope same error.
I can see my error message got deleted above, so here is the complete message
'System.Web.Mvc.HtmlHelper<Umbraco.Web.PublishedContentModels.ImporteretArtikel>' has no applicable method named 'Partial' but appears to have an extension method by that name. Extension methods cannot be dynamically dispatched. Consider casting the dynamic arguments or calling the extension method without the extension method syntax.
Ah - now that makes an entirely different kind of sense :-)
You probably know I'm not fully qualified to hand out advice about .NET stuff :-) - but the errormessage suggests that it's trying to use dynamics which I've been told we shouldn't... :)
Anyway - could you try using Umbraco.TypedContent(1061) instead and see where that gets you? (I know it's like walking a tightrope in a dark room!)
Rendering stack from specific node
Love the package! I've run into a bump though.
I use the following to render the stack, easy!
But im now trying to render a "sidebar" stack defined on the home page by using:
But this throws an error:
CS1973: 'System.Web.Mvc.HtmlHelper
Any help appreciated.
Hi Claus,
It's most likely because ModelsBuilder converts
.Indhold
to a collection for you, which using.GetPropertyValue()
doesn't.First thing I'd try is to use the
<T>
version (don't ask!) ofGetPropertyValue()
, e.g.:Umbraco.Content(1061).GetPropertyValue<IEnumerable<IPublishedContent>>("Sidebar")
Hope that helps,
/Chriztian
Nope same error. I can see my error message got deleted above, so here is the complete message
If i do
I get the "Stack" names just fine...
Ah - now that makes an entirely different kind of sense :-)
You probably know I'm not fully qualified to hand out advice about .NET stuff :-) - but the errormessage suggests that it's trying to use dynamics which I've been told we shouldn't... :)
Anyway - could you try using
Umbraco.TypedContent(1061)
instead and see where that gets you? (I know it's like walking a tightrope in a dark room!)/Chriztian
Thanks Chriztian.
Taking one thing that doesn't make sense and combining it with another did the trick :)
So if you want to render a stack from another node do:
Yeah - that's what I was almost certain of :-)
So frustrating when solving one thing opens up another can of worms...
/Chriztian
is working on a reply...