This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.UT = window.UT || {}; | |
UT.Masterpage = function() { | |
var | |
_jqui = null, | |
_wap = null, | |
_kom = null, | |
_sps = null, | |
_module = { | |
LoadJQueryUI: UT$Masterpage$LoadJQueryUI, | |
LoadKnockout: UT$Masterpage$LoadKnockout, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function LoadResource(url, afterUi) { | |
var | |
p = new $.Deferred(), | |
resource = null, | |
headOrBody = document.getElementsByTagName(typeof afterUi !== 'undefined' && afterUi ? "body" : "head")[0]; | |
if (url.match(/.js$/gi)) { | |
resource = document.createElement("script"); | |
resource.type = "text/javascript"; | |
if (resource.readyState) { // IE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head/> | |
<body> | |
<div id='embedded-feed' style='height:500px;width:100%;'></div> | |
<script src='https://c64.assets-yammer.com/assets/platform_embed.js' type='text/javascript'></script> | |
<script> | |
yam.connect.embedFeed({ | |
container: '#embedded-feed', | |
network: 'sharepointusergroupukcommunity', | |
/*feedType: 'group', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* load and synchronise execution of 2 or more scripts */ | |
var | |
upsuModulesLoaded = [ | |
RB.Masterpage.LoadResourceFromTenantRoot("_catalogs/masterpage/Buzz365/js/siteusage.js"), | |
RB.Masterpage.LoadResourceFromTenantRoot("_catalogs/masterpage/Buzz365/js/userprofile.js") | |
]; | |
$.when.apply($, upsuModulesLoaded) | |
.done(function() { | |
RB.Masterpage.Log("Masterpage>>userprofile.js and siteusage.js have loaded"); | |
var waitCount = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cls | |
Add-PSSnapin Microsoft.SharePoint.Powershell -ea SilentlyContinue | |
$w = Get-SPWeb "http://pub.pdogs.local/news" | |
$allProps = $w.AllProperties | |
$allProps.Keys | ? { $_ -match "^vti_indexedpropertykeys" } | % { "$_ = [$($allProps[$_])]" } | |
Write-Host | |
$propertyName = "MyWebTemplateID" | |
# indexedpropertykey must be base64 encoded value of the unicode string |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Set-PropertyBag { | |
param ( | |
[string]$PropertyName, | |
[string]$PropertyValue = $null, | |
[bool]$Indexable = $false, | |
[Microsoft.SharePoint.Client.Web]$Web, | |
[Microsoft.SharePoint.Client.ClientContext]$ClientContext | |
) | |
process { | |
$indexedPropertyBagKey = "vti_indexedpropertykeys" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<View WebPartZoneID="wpzHeader" WebPartOrder="0" List="Lists/PromotedLinks" DefaultView="FALSE" BaseViewID="1" Hidden="TRUE"> | |
<![CDATA[ | |
<webParts> | |
<webPart xmlns="http://schemas.microsoft.com/WebPart/v3"> | |
<metaData> | |
<type name="Microsoft.SharePoint.WebPartPages.XsltListViewWebPart,Microsoft.SharePoint,Version=15.0.0.0,Culture=neutral,PublicKeyToken=71e9bce111e9429c" /> | |
<importErrorMessage>Cannot import this Web Part.</importErrorMessage> | |
</metaData> | |
<data> | |
<properties> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<webParts> | |
<webPart xmlns="http://schemas.microsoft.com/WebPart/v3"> | |
<metaData> | |
<type name="Microsoft.SharePoint.WebPartPages.XsltListViewWebPart, Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" /> | |
<importErrorMessage>Cannot import this Web Part.</importErrorMessage> | |
</metaData> | |
<data> | |
<properties> | |
<property name="ListName" type="string">{$ListId:Documents;}</property> | |
<property name="ListId" type="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">$ListId:Documents;</property> |