Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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.
<div class="col-md-8 col-md-offset-2 text-center">
<h2>@Model.Value("introText", fallback: Fallback.ToAncestors)</h2>
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?
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted