当前位置: 首页>>代码示例>>C#>>正文


C# PortalController.ProcessResourceFile方法代码示例

本文整理汇总了C#中DotNetNuke.Entities.Portals.PortalController.ProcessResourceFile方法的典型用法代码示例。如果您正苦于以下问题:C# PortalController.ProcessResourceFile方法的具体用法?C# PortalController.ProcessResourceFile怎么用?C# PortalController.ProcessResourceFile使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在DotNetNuke.Entities.Portals.PortalController的用法示例。


在下文中一共展示了PortalController.ProcessResourceFile方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Wizard_FinishButtonClick

        /// <summary>
        /// Wizard_FinishButtonClick runs when the Finish Button on the Wizard is clicked.
        /// </summary>        
        /// <history>
        /// 	[cnurse]	10/12/2004	created
        /// </history>        
        protected void Wizard_FinishButtonClick(object sender, WizardNavigationEventArgs e)
        {
            PortalController objPortalController = new PortalController();

            // use Portal Template to update portal content pages
            if (lstTemplate.SelectedIndex != -1)
            {
                string strTemplateFile = lstTemplate.SelectedItem.Text + ".template";

                // process zip resource file if present
                objPortalController.ProcessResourceFile(PortalSettings.HomeDirectoryMapPath, Globals.HostMapPath + strTemplateFile);

                //Process Template
                switch (optMerge.SelectedValue)
                {
                    case "Ignore":
                        objPortalController.ParseTemplate(PortalId, Globals.HostMapPath, strTemplateFile, PortalSettings.AdministratorId, PortalTemplateModuleAction.Ignore, false);
                        break;
                    case "Replace":
                        objPortalController.ParseTemplate(PortalId, Globals.HostMapPath, strTemplateFile, PortalSettings.AdministratorId, PortalTemplateModuleAction.Replace, false);
                        break;
                    case "Merge":
                        objPortalController.ParseTemplate(PortalId, Globals.HostMapPath, strTemplateFile, PortalSettings.AdministratorId, PortalTemplateModuleAction.Merge, false);
                        break;
                }
            }

            // update Portal info in the database
            PortalInfo objPortal = objPortalController.GetPortal(PortalId);
            objPortal.Description = txtDescription.Text;
            objPortal.KeyWords = txtKeyWords.Text;
            objPortal.PortalName = txtPortalName.Text;
            objPortal.LogoFile = urlLogo.Url;
            objPortalController.UpdatePortalInfo(objPortal);

            //Set Portal Skin
            SkinController.SetSkin(SkinInfo.RootSkin, PortalId, SkinType.Portal, ctlPortalSkin.SkinSrc);
            SkinController.SetSkin(SkinInfo.RootSkin, PortalId, SkinType.Admin, ctlPortalSkin.SkinSrc);

            //Set Portal Container
            SkinController.SetSkin(SkinInfo.RootContainer, PortalId, SkinType.Portal, ctlPortalContainer.SkinSrc);
            SkinController.SetSkin(SkinInfo.RootContainer, PortalId, SkinType.Admin, ctlPortalContainer.SkinSrc);

        }
开发者ID:huayang912,项目名称:cs-dotnetnuke,代码行数:50,代码来源:SiteWizard.ascx.cs


注:本文中的DotNetNuke.Entities.Portals.PortalController.ProcessResourceFile方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。