예제 #1
0
        public virtual PageSettings GetDefaultSettings()
        {
            var pageSettings = new PageSettings
            {
                Templates   = _templateController.GetTemplates(),
                Permissions = GetPermissionsData(0)
            };

            pageSettings.TemplateId = _templateController.GetDefaultTemplateId(pageSettings.Templates);

            return(pageSettings);
        }
예제 #2
0
        public virtual PageSettings GetDefaultSettings()
        {
            var pageSettings = new PageSettings
            {
                Templates   = _templateController.GetTemplates(),
                Permissions = GetPermissionsData(0)
            };

            pageSettings.TemplateId = _templateController.GetDefaultTemplateId(pageSettings.Templates);

            var portalSettings = PortalController.Instance.GetCurrentPortalSettings();

            if (PortalController.GetPortalSettingAsBoolean("SSLEnabled", portalSettings.PortalId, false) &&
                PortalController.GetPortalSettingAsBoolean("SSLEnforced", portalSettings.PortalId, false))
            {
                pageSettings.IsSecure = true;
            }

            return(pageSettings);
        }