Re: Customising the Sharepoint Search connector for CMS
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Microsoft Content Management Server > Re: Customising the Sharepoint Search connector for CMS




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Re: Customising the Sharepoint Search connector for CMS  
Stefan [MSFT]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-29-04 05:45 PM

Hi David,

it is not possible to customize the control.
What you could do is to create a custom control derived from this control
and overload the Render method.
Here you are able to consume the response stream of the parent and could
parse and modify it.

Cheers,
Stefan.

--
This posting is provided "AS IS" with no warranties, and confers no rights.


"David" <anonymous@discussions.microsoft.com> wrote in message
news:11681F10-71AE-41AD-9C66-8D28C0EFB475@microsoft.com...
> Hi,
> I was wondering if anyone knew how to customise the SearchResultsControl
in the CMS Connector for sharepoint. It displays a 'last edited by' column
that we do not want to be visible to the public (since this is a public
site).
>
> Any help would be appreciated - I don't want to have to write this control
from scratch!
>
> Regards,
> David







[ Post a follow-up to this message ]



    Re: Customising the Sharepoint Search connector for CMS  
David


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-29-04 05:47 PM

Thanks Stephan,
...is the source code available - or some equivalent sample code? This woul
d make it easy to modify.

David





[ Post a follow-up to this message ]



    Re: Customising the Sharepoint Search connector for CMS  
Stefan [MSFT]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-29-04 06:42 PM

Hi David,

yes there is "similar" code that shows how to override the render method of
a placeholder control.
So if you only need a starter for this part of the problem, check out this
code:

protected override void Render(System.Web.UI.HtmlTextWriter output)
{
TextWriter tempWriter = new StringWriter();
base.Render(new System.Web.UI.HtmlTextWriter(tempWriter));

string orightml= tempWriter.ToString();

string newhtml = ModifyTheHtmlStream(orightml);

output.Write(newhtml);
}


Cheers,
Stefan.

--
This posting is provided "AS IS" with no warranties, and confers no rights.


"David" <anonymous@discussions.microsoft.com> wrote in message
news:3BC70481-D4C9-4186-B09A-4CE26F70D25F@microsoft.com...
> Thanks Stephan,
> ...is the source code available - or some equivalent sample code? This
would make it easy to modify.
>
> David







[ Post a follow-up to this message ]



    Re: Customising the Sharepoint Search connector for CMS  
David


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-29-04 08:42 PM

Stefan,
That's funny! I was thinking more along the lines of code that shows how to 
query the Sharepoint server and return the search results ;)

I don't really like the idea of parsing HTML strings!

David





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 05:08 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register