The default search scope in the sharepoint is "All sites", but sometimes the client request "This site:xx" set as the default scope. Maybe some one will suggest to modify the setting directly via Sharepoint Designer. But only for one site, the solution is not problem. For more than 100 sites, how to deal with it?
In order to solve such problem, customing code should be added to the search feature file. The following line
and the file will be:
In order to avoid the Sharepoint Upgrade problem in the future, we suggest you to write a new feature for the change and deploy the feature to the site collection.
Keine Kommentare:
Kommentar veröffentlichen