What are the rendering sub types in Sitecore?
Sitecore MVC uses the following rendering sub-types: Controller rendering: rendering definition item references a controller and action name View rendering: rendering definition item references a view (cshtml file) and optionally a viewmodel (which in turn references a model type in code)
What’s the difference between a controller and a view rendering?
A controller rendering will probably be more familiar to people who come from a standard MVC background. When we define a controller rendering in Sitecore, instead of specifying a view, we point Sitecore to an action within a controller.
What’s the difference between rendering and DataSource?
Provide inner HTML structure to a component or structuring element of a page. Item rendering: rendering definition item does not reference a controller or a view, instead it serves as a kind of ‘placeholder’. The datasource item should have a rendering type associated with it via the __renderers field.
What’s the difference between a layout and a rendering?
View rendering items are the simpler type, and like Layout items consist mainly of a field with a path to a .cshtml view file. Controller renderings, on the other hand, allow you to utilize the model-view-controller pipeline (in our case more like controller-model-view) in order to use business logic for components.
What’s the difference between a layout and a sublayout?
In Sitecore, under /sitecore/layouts, I see the following: What are these, and what makes them different? Are there any other types of layouts? Provide the outermost HTML structure of a page. There is one layout (per device) per page. Provide inner HTML structure to a component or structuring element of a page.
How are renderings represented in the content tree?
Like sub-layouts, renderings are represented in the content tree by an item under the Layouts node (specifically, Layout/Renderings). There are two types of renderings: controller renderings and view renderings. View rendering items are the simpler type, and like Layout items consist mainly of a field with a path to a .cshtml view file.