Adding new layouts

Posted by Community Admin on 05-Aug-2018 14:56

Adding new layouts

All Replies

Posted by Community Admin on 28-Feb-2015 00:00

I thought it was all convention based so if I dropped a new <name>.html into /GridSystem/Templates it would appear in the backend layouts?  Or is that just to override the embedded ones?

 No? ...is there a wiki doc I'm just missing?

 I mean I know I can likely just add them into the backend toolbox manually, was just curious...

Posted by Community Admin on 06-Aug-2015 00:00

Hi Steve,

I think this may be my struggle with the file based templates. Details of my adventures on this are here: www.sitefinity.com/.../new-file-based-templates

You can add new files to /GridSystem/Templates and they'll show up in the layout widgets. The new layouts have to be put into /MVC/Views/Layouts. Once there, you'll see a new mylayoutname.cshtml file in whatever your resource package folder name is.

The problem that I outlined in my post, is that this works fine but there's no idea of building one template from another so I can't drop in template1.cshtml and then template2.cshtml that builds on template1. It has to be a full page template from what I can tell.

This thread is closed