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
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.
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 ; https://umbraco.tv/videos/umbraco-v7/implementor/fundamentals/templating/introduction/
You can always add a template and link the template to your documenttype to create a rendering of this type of content.
/Niels
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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.
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 ; https://umbraco.tv/videos/umbraco-v7/implementor/fundamentals/templating/introduction/
You can always add a template and link the template to your documenttype to create a rendering of this type of content.
/Niels
is working on a reply...