Monthly archives: December, 2017

How to delete all lists in all webs using PowerShell

I want to delete all lists with title this and this using PowerShell but getting error Add-PSSnapin Microsoft.SharePoint.Powershell Get-SPWebApplication portal.fruits.com | Get-SPSite -Limit All | Get-SPWeb -Limit All | where {$_.Url -Match “crates”} | ForEach-Object { foreach ($list in $_.Lists) { if ($list.Title -eq “FruitDocuments”) { Write-Host($_.Url + “—-” + $list.Title + “——” + $list.BaseTemplate) …

List Form Validation Logic Not Working as Expected

I’m trying to include Validation Settings for my List Form where I’ve got a column called Food Service and another column called Food Service Type, where Food Service is a “Yes/No” type column and Food Service Type is a “Choice Menu” where I’ve got one of the menu options as “Please Select an Option”. I’m …

How to add a field to Discussion Board

I have got Discussion Board in Community Site. I want to add a field with image, or picture to the discussion list. How could I add a field to discussion list? ================= ================= 1 Answer 1 ================= In the Community Site you can View All Site Contents. Then open the Dicussion List. Select the List …

SharePoint 2013 – Search for subsite pages and PDFs

I have read the first 10 articles on Google about how to create a custom search in SharePoint 2013, but none of them talk about searching for pages. I don’t want to search, everything, people, conversations, or videos. I simply want to Search for any page within a specific Subsite (i.e. /mysubsite/) Pdfs within a …

How to remove Show More/Show Less” link on User profile MyPage

On Userprofile myPage (Person.aspx), Some properties are show. But for some other properties We need to click on “Show More/Show less” link to view more properties. I want to remove this “Show More” link. How i do this: See below picture: ================= ================= 1 Answer 1 ================= Add the following CSS: .ms-profile-toggleDetails { display:none; } …

Use page field data in my script/snippet

I am using the following code to display a Google map in a SharePoint 2013 code snippet. For each location the only thing that changes is the Google co-ordinates (5.8579629,-4.2665575) so I would like to add the co-ordinates to a list which holds the location details and pull that data into the above script. Each …

Ghost SharePoint solutions must die

We are developing a custom claims provider. In order to aid in debugging I write to a log file. I have little experience with SharePoint but I found and follow several different guides. Essentially, I create a WSP (with a Farm-level feature) and deploy it with PowerShell: Add-SPSolution C:\temp\OurCCP.wsp Install-SPSolution OurCCP.wsp -GACDeployment And when I …

Unable to hide the ribbon button using custom action

I have created one content type inheriting from Pages content type, and applied it to Pages library in publishing web. I want to hide the Publish button from the ribbon. To do so, I have created one custom action which contains following code. I have referred this link for hiding button from ribbon. But unfortunately, …