Default template views
This is the graph with all the views used in the default template.
It is formed with different types of elements:
The main view and the master pages
DefaultLayout: layout page directly referenced from the InterviewTemplate.
InterviewTemplate: base master page. Everytime the systems tries to find a view it will use that one as the default master page.
Screen: base page. When performing an interview, the view that the interviewing system will return is "Screen", all the rest of the structure will be generated from there.
Partial view referenced with their model name
When the RenderPartial is called only providing the model involved in the rendering, the RenderPartialExtensions class will choose a view based on a Prefix (that can be empty) and a Suffix:
- Prefix: Generated through the different attributes like:
Active
,DisplayHint
orRenderingDirective
. - Suffix: Name of the model
- Prefix: Generated through the different attributes like:
For example, when we call
Html.RenderPartial(segment)
, the system will render _ActiveSegment or _InactiveSegment depending on the Active attribute of the segment.In the graph this is represented through the 'Abstract' elements:
Segment
,Paragraph
,Content
andOpen
. All of them, represent the class that is being processed, and depending on the values mentioned previously the system will render one or another view.In many situations the name of the Model and the one of the View matches, as with the
_CategoryGroup
, the_Category
or the_TextContent
. In these cases, the prefix is just empty, and only the initial underscore_
to refer a partial view is used.The attribute:
RenderingDirective
can be set using the ODIN command*UIRender
and affects the models:Segment
,CategoryList
andOpen
.
Partial views referenced directly
The last type of partial views are the ones that are referenced by name directly like:
_Matrix
,_Buttons
,_Playmedia
,_ErrorMessage
,_PlayOnlineMedia
and_CaptureMedia
.Their objective is to extract part of the rendering to a different view in order to simplify the structure, and as they are referenced directly, the RenderPartialExtensions is not taking part.
Models with direct relation to views names
This graph represent the subgroup of models that have a direct relation with the views names