public void EditHtmlDir() { target(SaveHtmlDir); ContentApp app = ctx.app.obj as ContentApp; ContentSetting s = app.GetSettingsObj(); String htmlDir = HomeMaker.GetlAppDirName(app.Id); htmlDir = htmlDir.TrimStart('/').TrimEnd('/'); set("htmlDir", htmlDir); set("host", ctx.url.SiteAndAppPath); }
private void bindHtmlSetting() { ContentApp app = ctx.app.obj as ContentApp; ContentSetting s = app.GetSettingsObj(); String htmlDir = HomeMaker.GetlAppDirName(app.Id); htmlDir = htmlDir.TrimStart('/').TrimEnd('/'); set("htmlDir", htmlDir); set("host", ctx.url.SiteAndAppPath); set("editHtmlDirLink", to(EditHtmlDir)); String lnkHtmlHome = strUtil.Join(ctx.url.SiteAndAppPath, htmlDir) + "/default.html"; set("lnkHtmlHome", lnkHtmlHome); set("lnkOriginalHome", alink.ToApp(app)); String chkAutoHtml = s.IsAutoHtml == 1 ? "checked=\"checked\"" : ""; set("chkAutoHtml", chkAutoHtml); set("lnkEditAutoHtml", to(EditAutoHtml)); }