This project is read-only.

how to set a new view -cshtml to web homepage?

Mar 14, 2015 at 5:15 PM
Edited Mar 14, 2015 at 5:16 PM
I add a new page "Home.cshtml" to themes/Default/Apps/Core/Views/Pages/ .

and code as:
@{
    Layout = "_BaseLayout.cshtml";
}
@RenderBody()
<div class="row">
    <div class="col-sm-9">Only a Test</div>
</div>
@RenderSection("JavascriptBlockInclude", false)


----------------------------------------------
But HomePage not use the "Home.cshtml"

How to do can use the Home.cshtml?please...

Looking forward to your reply
Mar 16, 2015 at 10:26 AM
Edited Mar 16, 2015 at 10:26 AM
For this you will need to create a template.
  1. Go to System -> Page Templates -> Add
  2. Set up as so: Image (make sure you chose the right page type / layout) (Single use means that this page template can only be used once)
  3. This template will now show in the add page: Image
  4. If you have already added the page and want to change the template then you can under the layout tab: Image
Mar 18, 2015 at 2:01 AM
Thanks,I try to do.