sharepoint 2013

Sharepoint CSS/JS Caching problem

One easy way to resolve CSS / Javascript caching problem in sharepoint when caching is enabled is here,if your current links to your css and js files look like this: <link rel=“stylesheet” type=“text/css” href=“/_LAYOUTS/yoursolution/yourstyles.css” /> <script type=“text/javascript” src=“/_LAYOUTS/yoursolution/yourscript.js” ></script> Generate…

Sharepoint Powershell Set scope of people picker to particular domain

To scope people picker $wa = Get-SPWebApplication “http://webapplicationurl“ $adsearchobj = New-Object Microsoft.SharePoint.Administration.SPPeoplePickerSearchActiveDirectoryDomain $adsearchobj.DomainName = “domain.com” $wa.PeoplePickerSettings.SearchActiveDirectoryDomains.Add($adsearchobj) $wa.Update() To reset peoplepicker setting $wa = Get-SPWebApplication “http://webapplicationurl” $adsearchobj = New-Object Microsoft.SharePoint.Administration.SPPeoplePickerSearchActiveDirectoryDomain $wa.PeoplePickerSettings.SearchActiveDirectoryDomains.clear() $wa.Update()

SharePoint add “Add New Document” to Document Set home page

Add the below code to the document set home page using a content editor webpart.   <TD class=ms-addnew style=”PADDING-BOTTOM: 3px”> <SPAN class=s4-clust style=”OVERFLOW: hidden; HEIGHT: 10px; WIDTH: 10px; POSITION: relative; DISPLAY: inline-block”><IMG style=”POSITION: absolute; LEFT: 0px !important; TOP: -128px !important”…

Bitnami