November Happy Hour will be moved to Thursday December 5th.
Hello everyone,
I am going through the training pdf for the epi server. Have some question, may be someone can answer.
There is a class created 'defaultPageViewModel.cs':
Snippet
public class DefaultPageViewModel<>T> : IPageViewModel<>T> where T : SitePageData { public DefaultPageViewModel(T currentPage) { CurrentPage = currentPage; Section = currentPage.ContentLink.GetSection(); } public T CurrentPage { get; set; } public IContent Section { get; set; } }My question:I understand why we need the property CurrentPage in that IPageViewModel interface.But what is for IContent Section property?And why we set it up like =>>
currentPage.ContentLink.GetSection();what the section are we talking about?thank you very much for your help,HF
As far a I remember from Alloy - section points to parent page of the current content (one of the anchestors) which is 1st level child of the start page. In order to draw submenu navigation.
Hello everyone,
I am going through the training pdf for the epi server. Have some question, may be someone can answer.
There is a class created 'defaultPageViewModel.cs':
Snippet