More in this section
Forums / Sitefinity SDK / Get documents by tag

Get documents by tag

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
2 posts, 0 answered
  1. UI Crew
    UI Crew avatar
    151 posts
    27 Sep 2012
    10 Dec 2010
    Link to this post
    Can you folders the download list by tag and library? If not, how do you us the API get documents by tag and library name?
    Eg. I want all documents tagged with "birds" in the "flying" library.
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    12 Sep 2017
    10 Dec 2010
    Link to this post
    Hello Webinsite,

    When you open the control for editing you should go to Home > ControlDefinition > Views > MasterListView where you will find two properties

    ItemsParentId - here you should set the library ID
    FilterExpression - here you can filter by tag, but you should know the ID again.


    Tags.Contains("{4EEA167D-71D0-4332-9057-D550E2738076}")  AND Visible = true AND Status = Live AND PublicationDate <= DateTime.UtcNow AND (ExpirationDate = NULL OR ExpirationDate > DateTime.UtcNow)

    All the best,
    Ivan Dimitrov
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
2 posts, 0 answered