So far i have been under impression that views in Umbraco doesn't support strongly typed views but the example give in url below shows that Model (UmbracoLogin.MemberLoginModel) is accessible through Umbraco view.
The advantage of this is that you will have access to the Umbraco Helper methods in your views. (Like CurrentPage for instance.) All this is mentioned in the articel Dave wrote in 24 days that i posted earlier.
Understanding UmbracoViewPage
Hi All,
I am looking for some example/link explaining how strongly typed view is being created using UmbracoViewPage.
Can any one please help me on this?
Awsome post about this by Dave Woestenborghs:
http://24days.in/umbraco/2015/strongly-typed-vs-dynamic-content-access/
Hope this helpes you!!
Hi Dennis,
Thanks for the information.
So far i have been under impression that views in Umbraco doesn't support strongly typed views but the example give in url below shows that Model (UmbracoLogin.MemberLoginModel) is accessible through Umbraco view.
http://24days.in/umbraco/2012/creating-a-login-form-with-umbraco-mvc-surfacecontroller/
This is bit confusing to me.
Hi again!
Umbraco does support strongly typed views, like in the example from the link you posted:
But you can might as well use:
The advantage of this is that you will have access to the Umbraco Helper methods in your views. (Like CurrentPage for instance.) All this is mentioned in the articel Dave wrote in 24 days that i posted earlier.
More about the Umbraco Helper:
https://our.umbraco.org/documentation/Reference/Querying/UmbracoHelper/
Hi Dennis,
Thanks for the help.
As per my understanding we can't use strongly typed view (@model UmbracoLogin.MemberLoginModel) and @inherits UmbracoViewPage
Please verify.
That is correct!
Glad i could help! Have a great day!!! :)
Hi Dennis,
Thanks for the help.
I am new to MVC and Umbraco that's why asking sucs questions.
Great! Thats what a forum is for, to help out when someone is new! :)
Welcome to the great world of Umbraco!
Good luck!
is working on a reply...