Beispiel #1
0
        /// <summary>
        /// 根据文章ID,获得相关文章
        /// </summary>
        /// <param name="siteId">所属站点</param>
        /// <param name="article">所属文章</param>
        /// <param name="topCount"></param>
        /// <returns></returns>
        public static IList <ArticleInfo> GetRelatedByArticleId(int siteId, int articleId, int topCount, WebLanguage language = WebLanguage.zh_cn)
        {
            var list = ArticleManage.GetRelatedByArticleId(siteId, articleId, topCount);

            foreach (var item in list)
            {
                LoadExtensionInfo(item, language);
            }
            return(list);
        }