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 () { | |
var ctx = {}; | |
ctx.Templates = {}; | |
ctx.Templates.Fields = { | |
'Schulungsteilnehmer': { | |
'NewForm': renderAssignedTo | |
} | |
}; | |
SPClientTemplates.TemplateManager.RegisterTemplateOverrides(ctx); |
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
#------------------------------------------------------------------------------------------------------ | |
# Name: Export-SpSearchManagedProperties.ps1 | |
# Description: This script will export create Crawled and Managed Properties from Enterprise Search | |
# | |
# Usage: Run the function with a required parameters | |
# By: Ivan Josipovic, Softlanding.ca | |
#------------------------------------------------------------------------------------------------------ | |
Function Export-SpSearchManagedProperties([string]$SearchServiceApp,[string]$filename){ | |
#Use This to ignore the out of the box managed properties | |
$IgnoreMappings = @("AboutMe","Account","AccountName","AssignedTo","Author","BaseOfficeLocation","BestBetKeywords","CategoryNavigationUrl","CollapsingStatus","Colleagues","contentclass","ContentsHidden","ContentSource","ContentType","CreatedBy","Department","Description","DisplayDate","DocComments","DocId","DocKeywords","DocSignature","DocSubject","DuplicateHash","EMail", |
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
#------------------------------------------------------------------------------------------------------ | |
# Name: Import-SpSearchManagedProperties.ps1 | |
# Description: This script will Import create Crawled and Managed Properties from Enterprise Search | |
# | |
# Usage: Run the function with a required parameters | |
# By: Ivan Josipovic, Softlanding.ca | |
#------------------------------------------------------------------------------------------------------ | |
Function Import-SpSearchManagedProperties([string]$SearchServiceApplication,[string]$FileName) | |
[System.Xml.XmlDocument] $xd = new-object System.Xml.XmlDocument | |
$xd.load(resolve-path($FileName)) |
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
$(document).ready(function () { | |
var hostweburl; | |
var appweburl; | |
//Get the URI decoded URLs. | |
hostweburl = decodeURIComponent( getQueryStringParameter("SPHostUrl") ); | |
appweburl = decodeURIComponent( getQueryStringParameter("SPAppWebUrl") ); | |
// Load the .js files using jQuery's getScript function. | |
$.getScript( |
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
<PropertyGroup Condition="'$(Configuration)' == 'Debug'"> | |
<TypeScriptTarget>ES5</TypeScriptTarget> | |
<TypeScriptIncludeComments>true</TypeScriptIncludeComments> | |
<TypeScriptSourceMap>true</TypeScriptSourceMap> | |
</PropertyGroup> | |
<PropertyGroup Condition="'$(Configuration)' == 'Release'"> | |
<TypeScriptTarget>ES5</TypeScriptTarget> | |
<TypeScriptIncludeComments>false</TypeScriptIncludeComments> | |
<TypeScriptSourceMap>false</TypeScriptSourceMap> | |
</PropertyGroup> |
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
/// | |
/// Returns SharePoint smtp server | |
/// | |
/// | |
private string GetSmtpServer() | |
{ | |
SPWebApplicationCollection spWebApplicationCollection = SPWebService.ContentService.WebApplications; | |
SPOutboundMailServiceInstance smtpServer = new SPOutboundMailServiceInstance(); | |
if (spWebApplicationCollection != null) |
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
############################################################################################################################################ | |
# Script to configure outgoing e-mail in SharePoint | |
# Required Parameters: | |
# ->$sSMTPServer: SMTP Server. | |
# ->$sFromEMail: From Address. | |
# ->$sReplyEMail: To Address. | |
# ->$sChartSet: Character Set. | |
############################################################################################################################################ | |
If ((Get-PSSnapIn -Name Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue) -eq $null ) |
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
Removing solution PowerShell cmd: | |
Remove-SPSolution -Identity solution.wsp -Force | |
Removing solution stsadm cmd: | |
stsadm -o deletesolution -name solution.wsp -override | |
Add Solution PowerShell cmd: | |
Add-SPSolution D:\solution.wsp | |
Add Solution stsadm cmd: | |
stsadm.exe -o addsolution -filename D:\solution.wsp |
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
# open web | |
$web = Get-SPWeb http://yoursite | |
# get list | |
$list = $web.Lists["Your List"] | |
# get item | |
$item = $list.GetItemById(1) | |
# disable event firing | |
$myAss = [Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint"); | |
$type = $myAss.GetType("Microsoft.SharePoint.SPEventManager"); |
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
Add-PSSnapIn Microsoft.SharePoint.PowerShell | |
if ($args.Count -ne 3) | |
{ | |
Write-Host "UnpublishContentTypes.ps1 <web url> <content type hub url> <unpublish>" | |
exit | |
} | |
$webUrl = $args[0] | |
$ctUrl = $args[1] |