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
Here is my Razor html code,
@inherits Umbraco.Web.Mvc.UmbracoViewPage
@using ContentModels = Umbraco.Web.PublishedModels;
@{ var home = Model; Layout = null; }
Hi Vijay,
You might find the documentation on rendering content for V8 useful.
However, briefly, something like the following should work (where prop is the name of your property (e.g - pageTitle, pageText etc):
prop
@Model.Value("prop")
Or if you're using the ModelsBuilder:
@Model.Prop
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
How can I get documenttype Content in Razor html?
Here is my Razor html code,
@inherits Umbraco.Web.Mvc.UmbracoViewPage
@using ContentModels = Umbraco.Web.PublishedModels;
@{ var home = Model; Layout = null; }
Hi Vijay,
You might find the documentation on rendering content for V8 useful.
However, briefly, something like the following should work (where
prop
is the name of your property (e.g - pageTitle, pageText etc):Or if you're using the ModelsBuilder:
is working on a reply...