- Content Organizer Routing Rules
Sharepoint provides a very powerful OOTB advanced search web part. However if you want to add custom property to appear in property restiction, it is quite easy!!!
Create a refinable property for custom property which you want to be displayed in property restriction.
Now go to the Advanced search web part page and edit the advanced search web part. Under the properties section, click on Properties and edit.
Copy text in “Properties” text box in this section and paste it into notepad editor.Suppose we want to add property named “DocsDepartment”, add PropertyDef named “DocsDepartment” and add PreopertyRef “DocsDepartment” in all result type as follows:
Unfortunately, there is no user interface for restoring deleted site collections. Managing deleted site collections requires using PowerShell. SharePoint 2010 Service Pack 1 introduces 3 new PowerShell CmdLets for managing the Recycle Bin for site collections.
The easiest way to get a list of all the deleted site collections is to just call Get-SPDeleteSite without any parameters. In the following example, for brevity, I have formatted the output as a table and filtered the columns displayed. In the second sample, I have added a wildcard filter to the command that can be used to easily filter sites based on relative paths.
Once you have identified the site you want to restore, you call the Restore-SPDeletedSite. To restore one or more sites, it is easiest to just pipe the results from Get-SPDeletedSite. By default, the command will ask you to confirm the restore. To eliminate the confirmation, just add “Confirm:$true” to the end of the command.
For appending content to stringbuilder object we use Append() as
You can enable anonymous access to office 365 account using following sandbox solution:
Steps to configure a sharepoint list on my public facing sharepoint site that is accessible for anonymous users:
- Download the anonymous365 sharepoint solution from http://anonymous365.codeplex.com
- Go to the “Site Settings” of your public facing site using by example :http://brxyz/_layouts/settings.aspx
- Go to the “Galleries” section and go to “Solutions“.
- Click under the “Name” colume and in the ribbon interface under the “Solutions” tab choose “Upload Solution“.
- Browse to the previously downloaded anonymous365 sharepoint solution : “Wsp365.Anonymous.wsp” and press “OK“.
- Check the checkbox of the uploaded “Wsp365.Anonymous.wsp” and in the ribbon interface under the “Solutions” tab choose “Activate“.
- The go to the “All Site Content” of your public facing site using by example: http://brxyz/_layouts/viewlsts.aspx
- Press “Create“
- Choose the list type you want, enter a name and press “Create“.
- Then in the ribbon interface under “List Tools” and “List” press the button “Anonymous Access“
- Choose what access you want to give anonymous users for this specific list and press “OK”
The Enterprise has embraced SharePoint technology and generates a large amount of data on the server. As disk space is consumed, at times, content size might exceed the maximum storage limit of a site collection. At such time when any user attempts to create/upload the content, there are probable chances of loss of data.
For such a scenario, SharePoint provides Locks which would prevent all users to make any kind of additions to the site collection. Not only that, but with proper privileges one could prevent users to change the content or even can prevent access to all users of the site collection. For our scenario, we would prevent all the users to add content to the site.
To do so in SharePoint 2010, open SharePoint Central Administration. Click on Application Management.
Click on “Configure quotas and locks”.
Choose the appropriate Site Collection. For achieving our purpose, select “Adding Content Prevented” which would not allow any user to add content to the site collection.
The SharePoint Administrator can also use Windows Powershell as follows:
Go to Start menu -> All Programs -> Microsoft SharePoint 2010 Products -> SharePoint 2010 Management Shell.
At the command prompt type…
Set-SPSite -Identity “<SiteCollection>” -LockState “<State>”
…where <SiteCollection> will be the url of site collection and <State> will be one from Unlock, NoAdditions, ReadOnly and NoAccess.
Now try to add content to the site collection and you would face the below error.
SharePoint defines content types to store different types of metadata. SharePoint 2007 was limited in respect to content type centralization and sharing between site collections/web applications.
SharePoint 2010 introduces a new concept called the ‘Content Type Hub’. It is a centralized application where users can create different content types and publish them. As it would be defined as content type hub, every application could use it with a single configuration. The advantage is it would be centralized and could be shared among different applications. In this article we will show how to achieve this.
First of all create a new web application and a team site.
Now go to Central Administration -> Application Management -> Manage Service Applications -> Select Managed Metadata Service. Click Properties on the Ribbon.
Scroll down to the Application Pool Section. In the lower half, under Content Type Hub, we need to add the URL of the root site collection of web application which we have just created. By adding it here, it will define the web application as a content type hub. Once you have added it, click OK.
Move back to created web application and create a content type (I name mine ‘EmployeeContentType’). It has some basic information like empname, empno, empage, empaddress and empcontact.
After defining all metadata, click on “Manage publishing for this content type”. A screen will appear with three options “Publish”,”Unpublish” and “Republish”. In our case, Select Publish and click OK.
Now for an immediate effect, we need to run two timer jobs. The first is the Content type Hub and other the is the Content Type Subscriber. Do this from Central Administration -> Monitoring -> Timer Job Definitions.
Now go to the site where you want to have the defined content type. Go to Site Settings -> Site Collection Administration -> Content Type Publishing.
If everything was followed correctly, you should be able to see the defined content type under ContentTypeHubService (Managed Metadata Service name). If not, click on “Refresh all published content types on next update” and select OK and by next timer job execution, it will be published and imported automatically.
You can also check in Site Settings -> Site Content Types. It should be listed there too.