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

Forums / Developing with Sitefinity / Manager.GetContent filter application

Manager.GetContent filter application

2 posts, 1 answered
  1. Bruno Michels
    Bruno Michels avatar
    125 posts
    Registered:
    16 Apr 2010
    25 May 2010
    Link to this post
    How can I change the Application filter?

    It is generating a SQL with the following parameters

    @P_p1=N'/',@P_p2=127,@P_p3='C5DE07C9-B9DC-43A0-91AF-DF42ABB21B84'

    var list = manager.GetContent(0, 0, filters.ToArray(), new Guid[] { library.ID }).Cast<IContent>();

    I want @P_p1 to be '/Libraries'
  2. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    25 May 2010
    Link to this post
    Hi Bruno Michels,

    Thank you for using our services.

    You should then instantiate your manager with the Libraries provider instead of the Generic Content one:
    var manager = new ContentManager("Libraries");


    Regards,
    Radoslav Georgiev
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
    Answered
2 posts, 1 answered