Users and Posts page in Admin - Search box - input and button

Topics: Business Logic Layer, Controls
Dec 4, 2013 at 11:05 AM
Dear BlogEngine community

We need to add a Search box (input & button) on these pages to make it easy for the Admin's to search for content and users...

Admin/Users/Users.aspx - search by User and Email address

Admin/Posts/Posts.aspx - search by Author, Title, Date
Already have this set to admin see's it only - via the Posts.aspx.cs page and changing the pageload to be admin only... see bottom of this discussion..

Has anyone done this yet, if you can add code would be great - otherwise I will start working on this... or is there a plugin (widget)...


(Admin only - Posts.aspx.cs

namespace Admin.Posts
using System;
using App_Code;
// New
using BlogEngine.Core;
using BlogEngine.Core.Json;

public partial class Posts : System.Web.UI.Page
// OLD
    //protected void Page_Load(object sender, EventArgs e)
    //    WebUtils.CheckRightsForAdminPostPages(false);

// New
    protected void Page_Load(object sender, EventArgs e)
        Security.DemandUserHasRight(AuthorizationCheck.HasAll, true, new[] {
            BlogEngine.Core.Rights.ViewRoles });