Workitem 46

Add variables into web site parking page template
This commit is contained in:
Kenneth 2012-05-08 01:18:24 +02:00
parent 69ec933e40
commit e0829fed82
7 changed files with 31 additions and 3 deletions

View file

@ -404,6 +404,13 @@ namespace WebsitePanel.EnterpriseServer
if (!String.IsNullOrEmpty(pageName)
&& pageContent != null)
{
if (Utils.ParseBool(webPolicy["EnableParkingPageTokens"], false))
{
pageContent = pageContent.Replace("[DOMAIN_NAME]", site.Name);
pageContent = pageContent.Replace("[SITE_IP]", site.SiteIPAddress);
}
string path = Path.Combine(
FilesController.GetVirtualPackagePath(packageId, site.ContentPath), pageName);