I was reading a couple of posts on navigation techniques for Tridon/ASP.NET - one of which Quirijn mentioned the possibility of using published structure group information.
I'm having a quick play with retrieving published structure group information via the API. Both small tests:
TaxonomyFactory tf = new TaxonomyFactory();
var k = tf.GetTaxonomyKeywords("tcm:71-3-4");
And
TaxonomyHierarchyFormatter thf = new TaxonomyHierarchyFormatter(true);
TaxonomyFactory tf = new TaxonomyFactory();
var k = tf.GetTaxonomyKeywords("tcm:71-3-4", thf);
Always returns a Java.Lang.RuntimeException:
com.tridion.storage.StructureGroup cannot be cast to com.tridion.storage.Keyword
Which sort of makes sense as I's using a TCM of a structure group. But I'm not sure how else to retrieve structure groups as a taxonomy?
I'm assuming I still use TaxonomyFactory
to retrieve this as it looks like everything is stored in the TAXFACETS alongside other keywords?
There is a StructureGroupCriteria class as part of the Query namespace but I think this will only give me published component content based on structure groups.