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