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

Forums / Suggestions / Expanding the Category\Tags Fluent API

Expanding the Category\Tags Fluent API

6 posts, 0 answered
  1. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
    30 May 2011
    Link to this post
    Can someone spend their lunch hour to give us an easier way to query based on categories and tags?

    Like

    App.WorkWith().Events.InCategories("Special Days").WithTags(new List<string>(){"2010","2011"});

    ...or something like that

    PLEEEEASE... :)
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    30 May 2011
    Link to this post
    Hello Steve,

    Using the fluent API, you should work with GetValue DataExntessions methods. Please check this thread

    http://www.sitefinity.com/devnet/forums/sitefinity-4-x/general-discussions/query-library-items-by-tag.aspx

    Regards,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
    30 May 2011
    Link to this post
    Hey Ivan,
      That's what I mean...

    So while it is being done in the context of Fluent, it's hardly fluent.  The amount of posts on the subject should be enough for someone to just want to wrap them into a fluent method.

    Fluent should be self describing....

    So for example this
    .Where(ci => ((IList<Guid>)ci.GetValue("Category"))
    ...is just a Linq predicate, isn't self describing at all.  We can guess at what it does, but if you had to come back to it in 3 months after only doing it once, you'd have to re-google how to do it.

    Where if you wrapped it into

    .InCategory("CategoryName")

    ...that's much much nicer (I'm sure you'd agree?)
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    30 May 2011
    Link to this post
    Hello Steve,

    Yes, I agree with you and this is why where are making fixes each week and trying to improve developers and users experience.

    Regards,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  5. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
    30 May 2011
    Link to this post
    Great, I'll give it a whirl on this project with the predicate.

    But can I please get a PITS# or new PITS issue on Category\Tag Fluent method\helpers please :)
  6. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    31 May 2011
    Link to this post
    Hi Steve,

    Here is the PITS url.

    Best wishes,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
6 posts, 0 answered