Skip to content

Instantly share code, notes, and snippets.

@sparsee
sparsee / SharePoint Teamsite Branding 2
Last active April 15, 2019 18:52
SharePoint Team Site Branding using Custom Action
/**********************************************
This script is a Custom Action, that is activated through powershell on each site collection
after it has been provisioned. The custom action is not attached through the master page.
More info can be found on msdn.
This custom action is to make sure that when a sub-site is created, it takes on the branding.
Normally, team sites do not inherit the branding.
More information found here: https://dcsharepointchick.blogspot.com/2019/04/sharepoint-team-site-branding-and.html
@sparsee
sparsee / SharePoint Teamsite Branding
Last active March 19, 2018 19:35
Set SharePoint team site's master page to inherit branding from the root node site collection master page
<a href="javascript:void(0)" onclick="TSUpdateSitesMaster()" style ="display:none" id="linkTSUpdateMaster" >Hello, Please Click Here to Update this site's Master Page</a>
<label id="lblUpdatedMaster" style ="display:none; color:green">This site's Master Page has been updated. Please refresh this page</label>
<label id="lblDeleteWebPart" style ="display:none; color:green">This site is inheriting the Master Page. Please remove this web part</label>
<label id="lblError" style ="color:red; display:none"></label>
<script type="text/javascript">
var m_scMasterUrl = "";
@sparsee
sparsee / gist:2989549
Created June 25, 2012 16:19
SharePoint full calendar
<style>
#calendar28 {
padding-top: 15px;
width: 850px;
}
.fc-header-title h2 {
font-size: 14px;
width:80;
asdf