1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / How to get content from a taxon item

How to get content from a taxon item

2 posts, 0 answered
  1. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
    06 Jun 2011
    Link to this post
    Ok so I have a reference to my HierarchicalTaxon item...how do I then get every document linked to that taxon?

    Steve
  2. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
    06 Jun 2011
    Link to this post
    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();
2 posts, 0 answered