Skip to main content
1 of 2
Raimond
  • 7.3k
  • 18
  • 29

You can do something like:

CompositeFilter filter = new CompositeFilter();
// all keywords 
filter.DepthFiltering(DepthFilter.UnlimitedDepth,DepthFilter.FilterDown);
// Creates a flat list
TaxonomyFormatter formatter = new TaxonomyListFormatter();
Keyword keywords = tf.GetTaxonomyKeywords(categoryId, filter, formatter);
IList keywordList = keywords.KeywordChildren;

Do note that when retrieving a flat list like this, you will lose all the information about hierarchy in the Taxonomy, which means that if you want to get the parent keyword of a keyword, you need to fetch that keyword again.

Raimond
  • 7.3k
  • 18
  • 29