How to get content from a taxon item

Posted by Community Admin on 04-Aug-2018 01:52

How to get content from a taxon item

All Replies

Posted by Community Admin on 06-Jun-2011 00:00

Ok so I have a reference to my HierarchicalTaxon item...how do I then get every document linked to that taxon?

Steve

Posted by Community Admin on 06-Jun-2011 00:00

Oh wait, I think I'm looking at it backwards...

Go though documents and get items with the taxID, not get the taxID and get referenced docs...

App.WorkWith().Documents().Publihed().Where(ci => ci.GetValue<IList<Guid>>("Category").Contains(taxon.Id) &&
                                  ci.Status == Telerik.Sitefinity.GenericContent.Model.ContentLifecycleStatus.Live)
                                 .Get();

This thread is closed