Jul 2, 2011 at 1:19 AM
Edited Jul 2, 2011 at 1:45 AM
Yes, yes really I tried this one
var test = ((IContent)Model.ContentItem).As<RelatedSlugPart>();
Always get Null
Well so you mean that it is possible to reach the data prepared on the widget Driver at this place if your are positive I will be trying again.
I would be just what I need.
You see on the Driver I query some arbitrary ContentType, build a list of it and put it on this RelatedWidget template.
But on Widget.Wrapper.cshtml I deal only with the RelatedWidget data and know nothing about this ContentType list which I build on the Driver.
RelatedSlugPart is the part of a ContentType not the Widget
So I do not understand how I can get to know if the list is filled or not at this place....
That is why I thought if just empty the Widget Title on the driver it wont be rendered.
Just fully frustrated.... it seems that I have to repeat the query code which I used on drive here - ugliest thing
Something or very much I still cannot perceive.