本文整理汇总了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);
}