Recently i was trying to move sharepoint files / folders (along with contents) programmatically. Finally i ended up using the method below. It is a neat helper method that you can use easily.
Note: Cross-web folder move is not supported!
Zieglers
Posted by zieglers on August 18, 2010
Recently i was trying to move sharepoint files / folders (along with contents) programmatically. Finally i ended up using the method below. It is a neat helper method that you can use easily.
Note: Cross-web folder move is not supported!
Zieglers
Posted in IT Stuff, SharePoint | Tagged: FrontPage RPC, move, move documents, move folders, sharepoint, UploadData, WebClient | 2 Comments »
Posted by zieglers on August 13, 2010
Posted in IT Stuff, SharePoint | Tagged: Bulk, bulk move, destination, keep versions, move, move documents, sharepoint, source, Version History, versions | Leave a Comment »
Posted by zieglers on August 3, 2010
Business Requirement:
Let’s say there is a request where users want to be able to search a set of site collections. For example, HR has 3 site collections. HR would like their users to be able to search all 3 site collections at once, but only those three.
This can be done with painful criteria manually entered into your search, but it seems like a custom search scope is the cleanest solution.
By only creating the search scope, that scope won’t be available in the search dropdown on all pages on that site. It won’t show up anywhere. To use custom search scopes requires the user to create a search center for their collection.
Question: How would you have an end user SCA create a custom search scope for their site to search against 3 site collections?
Facts:
Custom search scopes require a dedicated search center be created. Otherwise, custom scopes won’t be visible in search dropdown.
SCAs can create custom scopes and make those available to end users by doing proper configuration in site collection search settings and search scopes.
Solution:
Custom search scopes can be created by SCAs in order to search a set of site collections. Before doing so a dedicated content source to serve those scopes must be created in Central Admin by farm administrator.
Create a new Content Source. (performed by Farm Admin)
Create a shared scope using content source created above. (performed by Farm Admin)
Update scopes. (performed by Farm Admin)
Go to your site collection settings. Search Scopes. (performed by SCA)
Make a shared copy of search scope. (performed by SCA)(Repeat these steps for search center as well.)
Note: Create your shared scope both for your site collection and for search center. Don’t forget to use same scope names. In case you don’t create one for search center, you’ll receive an error saying “Scope in your query does not exist”.
Edit copied scope.
Provide Search Center Url for Custom Scopes. (performed by SCA)
Now go to your site collection and search something using the scope you just created.
You’ll see that results are displayed only for site collections you provided in your content source.
In this case, results are displayed for HR sites 1-2-3.
Zieglers
Posted in IT Stuff, SharePoint | Tagged: Custom, SCA, search scope, searching, searching set of site collections, set of site collections, shared, shared scope, sharepoint, site collection scope | 2 Comments »
You must be logged in to post a comment.