Copied to clipboard

Flag this post as spam?

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

  • Brent 29 posts 240 karma points
    Aug 23, 2017 @ 15:07

    Are all Document Types in Umbraco 7 required to be cshtml files?

    Hey guys,

    While importing files from my umbraco 4 project I noticed that all the document types were named .master files. Inside the files it uses some C# code.

    Can these files work, on their own or do I need to modify the code and change the file types?

    So far every time I publish it, it says that the template can't be found.

  • Niels Lynggaard 175 posts 472 karma points
    Aug 24, 2017 @ 09:40
    Niels Lynggaard

    Hi Brent.

    Usually a document type has a corresponding .cs view (template) that is responsible for rendering the markup and properties of your document when it's viewed on the page. Without a .cs file view, the page doesn't know what to show you.

    You can learn more about templating in Umbraco 7 by watching this episode of Umbraco.Tv ;

    You can always add a template and link the template to your documenttype to create a rendering of this type of content.


Please Sign in or register to post replies

Write your reply to: