@Model.GetPropertyValue() to @Model.Content.GetPropertyvalue()
his edit was wrong because the example started with @inherits UmbracoViewPage (and he did not changed the inherits).
So a few questions
What should the example use: UmbracoViewPage or UmbracoTemplatePage
If UmbracoTemplatePage will disappear in v8, isn't it better to change the code generation so new Umbraco users (who create views from the backend) get the UmbracoViewPage instaed of UmbracoTemplatePage?
Replace UmbracoTemplatePage with UmbracoViewPage
We had a issue with a PR to the Umbraco Docs.
The guy, changed an example from
@Model.GetPropertyValue() to @Model.Content.GetPropertyvalue()
his edit was wrong because the example started with @inherits UmbracoViewPage (and he did not changed the inherits).
So a few questions
I'd go with
UmbracoViewPage<T>
10 out of 10 times in all cases. ;)I'd say it needs to use
UmbracoTemplatePage
until v8, because that's what Umbraco generates for you. (Even though I preferUmbracoViewPage
myself too)I think I've asked the same question, but I also seem to remember hearing words like "breaking change"... :)
/Chriztian
I dunno which page we're talking about, but maybe it's an idea to show both methods on that page, explaining the differences?
is working on a reply...