Quantcast
Channel: C1 CMS Foundation - Open Source on .NET
Viewing all articles
Browse latest Browse all 2540

New Post: Creating MasterLayout.cshtml

$
0
0
Suggesting creating a Master Layout as a Razor template originally might not have been a good idea here. My bad.

One should follow the steps above that start with words "Alternatively..." and create it as a .cshtml file:
  1. either from the System perspective
  2. or externally with some editor (from Notepad to Visual Studio) - if you have access to the file system of the website (create or upload).
The empty .cshtml file thus created in ~/App_Data/PageTemplates/ will appear in /SharedCode and can be used as a master layout.

We'll update the documentation accordingly.

For the sample code you can check the master layout and razor templates in the Venus Starter Site.

Viewing all articles
Browse latest Browse all 2540

Trending Articles