setup blog as sub-page, sub-folder

Feb 10, 2010 at 1:40 PM
Edited Feb 10, 2010 at 2:32 PM

Some error when create blog as sub-page (in sub-folder) pls fix it: (BlogEngine.NET 1.6 (source) release file version)

- widgets\Administration\widget.ascx

change the line:

<%@ Register Src="~/admin/menu.ascx" TagPrefix="ux" TagName="Menu" %>

to

<%@ Register Src="../../admin/menu.ascx" TagPrefix="ux" TagName="Menu" %>

- in all of file of the folder "admin/Pages"

change:

MasterPageFile="~/admin1.master"

to:

MasterPageFile="../admin1.master"

change

<%@ Register Src="~/admin/htmlEditor.ascx" in Profile.aspx

to:

<%@ Register Src="../htmlEditor.ascx"

in file admin/Pages/Settings.aspx.cs line 262

change:

string path = Server.MapPath(Utils.RelativeWebRoot + "App_GlobalResources/");

to:

string path = Server.MapPath("~/App_GlobalResources/");

change some CodeFile="~/admin/Filename.ascx.cs" of .ascx file in admin/

to: CodeFile="Filename.ascx.cs"

----------------------------------------

in publish site pls do by following step:

- Move all to sub-folder excluded all file in: ~/App_Code; ~/App_Data; ~/App_GlobalResources; ~/bin; ~/Global.asax; ~/Web.Config; Web.sitemap

- Change follow line in web.config file:

<add key="BlogEngine.VirtualPath" value="~/"/>

to

<add key="BlogEngine.VirtualPath" value="~/sub-folder/"/>

-Change all url of siteMapNode in Web.sitemap file from "~/admin/..." to "~/subfolder/admin/..."