Querying two blog types

Vote:
 

I am trying to extract all entries of either BlogType.UserBlog or BlogType.General. But it seems like it is only possible to query one type at a time. This is a problem as I would like to leave the sorting etc. which I cannot do if I have to extract two EntryCollections and add them together. Besides that there is issues with paging as well if I have to add two collections.

Have any of you guys any ideas?

#32205
Aug 25, 2009 17:50
Vote:
 

We have same problem. Is anybody know how to set query crtieria for either BlogType.UserBlog or BlogType.General?

#34281
Nov 01, 2009 6:52
Vote:
 

We solved it likes this, it works 

         entries = BlogHandler.GetEntries(BlogType.ExpertBlog | BlogType.UserBlog, FromDate, DateTime.Today.AddDays(1), EntryPublishState.Published, true, 1, PageSize, out totalItems, CurrentSortOrder);
      
         entries = BlogHandler.GetEntries(BlogType.ExpertBlog | BlogType.UserBlog, FromDate, DateTime.Today.AddDays(1), EntryPublishState.Published, true, 1, PageSize, out totalItems, CurrentSortOrder);      
#36249
Jan 21, 2010 13:20
This thread is locked and should be used for reference only. Please use the Legacy add-ons forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.