I am trying to override the "SearchResultsPageUrl" property of the SmallSearchInputBox using a delegate via Visual Studio 2010. However nothing seems to be happening, below is the current setup I've got:
- Created an empty SharePoint 2010 project
- Added an "Empty Element" by via right-clicking on the project in solution explorer selecting Add new item > Empty Element.
- Named the "Empty Element" to "SearchBoxOverride"
- In the "Elements.xml" file I added the follwing lines of code which now looks like the below:
I then built the solution and deployed. Under "site collection features" I can see that this has been activate, but the now the search box has disappeared. If I deactivate the feature the search box reappears again.
The project looks like the below:
Have I missed a step which is causing for the search box to disappear?
Any assistance would be appreciated...
Many Thanks...