+1-888-365-2779
Try Now
More in this section

Forums / Project Feather / Adding new layouts

Adding new layouts

2 posts, 0 answered
  1. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
    28 Feb 2015
    Link to this post

    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...

  2. Bil
    Bil avatar
    51 posts
    Registered:
    27 Aug 2012
    06 Aug 2015 in reply to Steve
    Link to this post

    Hi Steve,

    I think this may be my struggle with the file based templates. Details of my adventures on this are here: http://www.sitefinity.com/developer-network/forums/project-feather/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.

2 posts, 0 answered