I'd try inherit Microsoft.Office.Server.Search.WebControls.CoreResultsWebPart (or reference it server side) - then dynamically build the fixed query internally, and use the SPWeb.CurrentUser to build the "author:X" text.
I did read somewhere though - I think it was an article about building a custom advanced search box, where he provided a fixed query and it accepted [Me]? Matthew Cosier From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sharepoint Consultant Sent: Sunday, 26 October 2008 6:19 PM To: [email protected] Subject: [OzMOSS] Username keyword in sharepoint Hi, I am using the Search Core Results webpart and utilising a fixed keyword query. I need to return all content for the current user. My current keyword query is: author:machinename\Administrator This works great, however, I do not want to hardcode the username. I want it to pick up the user currenty logged in. Does anyone know how this can be done? ------------------------------------------------------------------- OzMOSS.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject. Powered by mailenable.com ------------------------------------------------------------------- OzMOSS.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject. Powered by mailenable.com
