2

All of the common CSHTML views in Habitat are in a folder called Sublayouts.

https://github.com/Sitecore/Habitat/tree/master/src/Project/Common/code/Views/Common/Sublayouts

However, I'd usually call these Renderings vs Sublayouts, because they're Razor views. Specicifally, I'd call them View Renderings. This is backed up in the Content Editor, where these items exist as Renderings:

enter image description here

Is there some terminology difference in Habitat that I'm not aware of? Or is it just confusing naming within the Habitat codebase?

3

In Helix documentation View Renderings are considered Sub-Layouts.

As layouts and sub-layouts (in MVC defined as View Renderings) typically control the overall page design and therefore contain very site or project specific mark-up, they belong in Project layer modules.

http://helix.sitecore.net/principles/layout/layouts.html

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.