Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Steven Shiells 5 posts 25 karma points
    Apr 11, 2012 @ 15:35
    Steven Shiells
    0

    Show only search results from blog where search originated and sort results by Date

    I manage multiple blogs under the one umbraco instance (I have multiple sites each with there own blog) and when searching the blog I get posts from all of the different blog instances. It would be good (at least for me) if the searches were limited to the blog that the search was initiated from.

    It would also be good if the results were sorted in date order. I have had a quick look at doing this myself but as the search macro uses

    PostService.Instance.GetPosts(Model.IdtagcategoryauthorsearchTermcommenterpage-1count);

    (which I cannot seem to find any documentation to see if there is a version that takes a sort parameter) it gets quite difficult as I need to get all of the posts, sort them, then work out which posts should be displayed and then assign them to a list (othewise I just sort the  count items that are returned, and the items that are returned appear to be random). This feels like I am doing a lot of work that the above line does but which I cant use. (I have no idea if PostService.Instance.GetPosts has anything to do with this package) .

    Both of these issues have fairly easy workarounds, but it would be nice (at least for me :-) ) if they came out of the box so I didn't need to re-implement them each time I updated the package.

  • Anthony Dang 1404 posts 2558 karma points MVP 3x c-trib
    Apr 12, 2012 @ 22:27
    Anthony Dang
    0

    The latest version of uBlogsy takes care of the search result from multiple roots issue.

     

     

     

     

     

Please Sign in or register to post replies

Write your reply to:

Draft