Model always null when trying to show DocumentTypes.field values
Firstly, I am new to Umbraco.
I have a partialview called Intro.cshtml and I want to use the field "introText" in it.
The field "introText" is a textbox field and forms part of a DocumentType called "Intro Controls", and it is assigned to all my documenttypes.
In v7 I could just do @Currentpage.introText, and it would work, but in v8 this does not work for me.The above code also errors though as @model is null.
Model always null when trying to show DocumentTypes.field values
Firstly, I am new to Umbraco.
I have a partialview called Intro.cshtml and I want to use the field "introText" in it. The field "introText" is a textbox field and forms part of a DocumentType called "Intro Controls", and it is assigned to all my documenttypes.
In v7 I could just do @Currentpage.introText, and it would work, but in v8 this does not work for me.The above code also errors though as @model is null.
What am I missing?
THanks Simon
@Umbraco.AssignedContentItem.GetProperty("introText").Value()
is working on a reply...