Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Taxonomy Module を使用していくつかの用語を作成しました。カスタム コンテンツ タイプに分類法フィールドを追加しました。このページで、同じ分類用語でタグ付けされた他のアイテムを表示したいのですが、どうすればよいですか?
用語名がわかっている場合は、次のクエリを使用できます -
var _taxonomyService = WorkContext.Resolve<ITaxonomyService>(); var termContentItems = _taxonomyService.GetContentItems(termname) .Where(c => c.ContentItem.ContentType == "YourContentTypeName") .ToList();