Beispiel #1
0
 public static string GetCMSUrl(int NewId, string pageName = "CMS", ApplicationKeyType applicationType = 4)
 {
     Maticsoft.BLL.CMS.Content content = new Maticsoft.BLL.CMS.Content();
     Maticsoft.Model.CMS.Content modelByCache = content.GetModelByCache(NewId);
     Maticsoft.BLL.CMS.ContentClass class2 = new Maticsoft.BLL.CMS.ContentClass();
     if (modelByCache != null)
     {
         string str = content.GetContentUrl(modelByCache) + ".html";
         string valueByCache = ConfigSystem.GetValueByCache("ArticleStaticRoot");
         valueByCache = (valueByCache.LastIndexOf("/") > -1) ? valueByCache : (valueByCache + "/");
         return (valueByCache + class2.GetClassUrl(modelByCache.ClassID) + "/" + str).Replace("--", "-").ToLower();
     }
     return "";
 }