Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I have been trying to create a feature which replaces the SmallSearchInputBox delegate in SharePoint 2010.

I have a new control which I placed in ~/controltemplates and created an element and feature xml.

In the debug mode of VS2010, I can see the site collection feature and activate it but nothing changes to the search area. I also tried farm scope but no difference.

Any ideas?

share|improve this question
add comment

2 Answers 2

up vote 2 down vote accepted

This delegate control takes a single control, so you need to ensure that the sequence is less than 25 (the default control) to override it. Make the sequence 20 or something. Also make sure the feature is Site scoped.

It might be worth double checking that the page you are loading actually contains the SmallSearchInputBox delegate control. It's easy to miss this kind of thing. I should know.

share|improve this answer
add comment

If changing your sequence id (as SPDoctor suggests), can you post your code?

Conveniently enough, MSDN's sample article on delegate controls deals with the SmallSearchInputBox. You can find that link here. Note the comments at the bottom of the article as they have a few errors published.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.