Esempio n. 1
0
        /// <summary>
        /// 获取当前站点的Tags对象
        /// </summary>
        /// <param name="siteId"></param>
        /// <returns></returns>

        // private HttpTags GetTags(int siteId)
        // {
        //     HttpTags _tags = null;
        //     if (!tags.Keys.Contains(siteId))
        //     {
        //         string dirPath = String.Concat(Cms.PyhicPath, CmsVariables.SITE_CONF_PRE_PATH, siteId.ToString(), "/");
        //         if (!Directory.Exists(dirPath))
        //         {
        //             Directory.CreateDirectory(dirPath).Create();
        //         }
        //         _tags = new HttpTags(String.Concat(dirPath, "tags.conf"));
        //         tags.Add(siteId, _tags);
        //     }
        //     else
        //     {
        //         _tags = tags[siteId];
        //     }
        //     return _tags;
        // }
        public void TagsIndex()
        {
            var js  = ManagerTemplate.GetScriptTag();
            var css = ManagerTemplate.GetCssTag();

            var siteId  = CurrentSite.SiteId;
            var content = ResourceMap.GetPageContent(ManagementPage.Archive_Tags);
            //GetTags(siteId).ProcessRequest(HttpContext.Current, content.Replace("$js()", js).Replace("$css()", css));
        }
Esempio n. 2
0
        public void TagsIndex_GET()
        {
            string js  = ManagerTemplate.GetScriptTag();
            string css = ManagerTemplate.GetCssTag();

            int    siteId  = this.CurrentSite.SiteId;
            String content = ResourceMap.GetPageContent(ManagementPage.Archive_Tags);

            GetTags(siteId).ProcessRequest(HttpContext.Current, content.Replace("$js()", js).Replace("$css()", css));
        }