Exemple #1
0
        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);
        }
Exemple #2
0
        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);
        }
Exemple #3
0
        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));
        }