コード例 #1
0
ファイル: SiteHelpers.cs プロジェクト: foster-hub/box-cms
 public static IEnumerable<ContentHead> GetRelatedContents(string[] tags, string location = null, string[] kinds = null, bool parseContent = false, int top = 0)
 {
     SiteService site = new SiteService();
     return site.GetRelatedContent(tags, top, location, kinds, parseContent);
 }
コード例 #2
0
ファイル: SiteHelpers.cs プロジェクト: foster-hub/box-cms
 public static IEnumerable<ContentHead> GetRelatedContents(string id = null, string location = null, string[] kinds = null, bool parseContent = false, int top = 0)
 {
     if (id == null)
     {
         Box.CMS.Web.ContentRenderView renderView = WebPageContext.Current.Page as Box.CMS.Web.ContentRenderView;
         if (renderView == null)
             return new List<ContentHead>();
         id = renderView.HEAD.ContentUId;
     }
     SiteService site = new SiteService();
     return site.GetRelatedContent(id, top, location, kinds, parseContent);
 }