Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • steschu 88 posts 489 karma points
    Oct 04, 2018 @ 14:47
    steschu
    0

    Fully Qualified Name UmbracoTemplatePage

    I've seen two syntaxes to inherit from UmbracoTemplatePage in the template views:

    @inherits Umbraco.Web.Mvc.UmbracoTemplatePage
    

    and

    @inherits UmbracoTemplatePage
    

    Both seem to work. So is there any need to use the fully qualified name?

    Stephan

  • Nik 1617 posts 7263 karma points MVP 7x c-trib
    Oct 04, 2018 @ 16:18
    Nik
    101

    Hi Steschu,

    There is no need to use the fully qualified version. This is because the namespace is included via the web.config file located in the Views folder. (You won't be able to see this via the Umbraco back office). It also includes a few other namespaces to make accessing things easier.

    Thanks

    Nik

Please Sign in or register to post replies

Write your reply to:

Draft