Hi Juraj,
I am using MVC. I have registered a page template in PageBuilderComponentRegister.cs. No controller is used so I am trying to fetch the page info on the view. Below is my code
var pageInfo = CMS.DocumentEngine.PageInfoProvider.GetPageInfo(SiteContext.CurrentSiteName
, Model.Page.NodeAliasPath, preferredCultureCode, Model.Page.NodeAliasPath, false);
// RequiresAuthentication;
The "Model.Page" is not null and has all the values which I used in the above method.
The "GetPageInfo" method returns one property "RequiresAuthentication" which I need to check whether page needs authentication or not. The "RequiresAuthentication" property value is set in "Security" tab of the page in CMSDesk.
I am getting "pageInfo" variable always null. That is the issue.
I don't know what I am missing