SharePoint (2003 thru Online): July 2022

Tuesday, July 5, 2022

Change default color in Calendar without using Overlay of Calendars

Usually, we have Theme colors changing the entire theme of the site including document libraries, lists and Calendars. Here we have an option to add a little CSS script to change the colors of the default Calendar without adding new Views and using Overlay of Calendars.

The default color of the Calendar.

Go to Calendar page > Click on Wheel icon > Edit Page > Add Web Part > Media and Content > Content Editor > Add

The Content Editor Web part was added to the Calendar Page. Click on 'Click here to add new content'.
It will show new Tool bar Menus on top side. Under Format Text > Click on 'Edit Source'

<style type="text/css">
.ms-acal-item {
 BORDER: #C0362C; BACKGROUND-COLOR: #C0362C
}
.ms-acal-default-hover {
 BORDER: #C0362C; BACKGROUND-COLOR: #C3B7AC
}
.ms-acal-apanel-item {
 BORDER: #C0362C; BACKGROUND-COLOR: #C3B7AC
}
</style>

Copy, paste the above CSS Code into the HTML Source Window, Click OK. You will observe the entries color change in the Calendar. 


Below is the color change in the Calendar.


SharePoint Online: “Delete this Document Library” is missing!

Use the below Command to install PnP PowerShell Module.

Install-Module PnP.PowerShell

Once the PnP PowerShell Module is installed successfully, we need to run the below command to register Azure AD Application and Grant Access to the Office 365 tenant by Accepting the Consent on behalf of your organization.

Register-PnPManagementShellAccess

_______________________________________________________________________________________________
SharePoint Online: “Delete this Document Library” is missing!

While migration to SharePoint Online, from SharePoint 2007, 2010 & 2013 versions, there is a chance to copy over the lists and Libraries created by "This system library was created by the Publishing feature" where you don't see option to delete those lists or libraries.

We can achieve that by using the below Powershell Script.
In the below PowerShell Script, we targeted Form Templates Library technically called as FormServerTemplates.

The above is the screenshot before running the Script.

#Parameters
$SiteURL = "https://gurram.sharepoint.com/sites/pro"
$ListName = "FormServerTemplates"
 
#Connect to PnP Online
Connect-PnPOnline -Url $SiteURL -Interactive
 
#Get the List
$List = Get-PnPList -Identity $ListName
  
#Enable Delete option for the list
$List.AllowDeletion = $True
$List.Update()
Invoke-PnPQuery


The below is the Screenshot after running the Script.