Skip to content

Instantly share code, notes, and snippets.

Derek Hunziker dthunziker

Block or report user

Report or block dthunziker

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@dthunziker
dthunziker / Reset Profiles.ps1
Last active Oct 17, 2018
A Sitecore PowerShell Extensions script for clearing and applying profiles to one or more items
View Reset Profiles.ps1
$rootItem = Get-Item .
if ($rootItem.Appearance.ReadOnly) {
Show-Alert "You cannot edit this item because it is protected."
return
}
if (!$rootItem.Security.CanWrite([Sitecore.Context]::User)) {
Show-Alert "You do not have write access to this item in order to perform this action."
return
View Create-XmlSitemap.ps1
function Create-XmlSitemap {
<#
.SYNOPSIS
Generates an XML sitemap.
.PARAMETER SiteName
The name of the site defintion to generate the sitemap for. If omitted, the site definition matching the host name will be used.
.PARAMETER HostName
The host name that will appear in URLs. If omitted, the first hostname from the site definition will be used.
@dthunziker
dthunziker / SendSlackMessagePostDeployAction.cs
Last active Aug 9, 2016
A TDS Post Deploy Step for sending Slack notifications
View SendSlackMessagePostDeployAction.cs
using HedgehogDevelopment.SitecoreProject.PackageInstallPostProcessor.Contracts;
using System;
using System.Collections.Specialized;
using System.ComponentModel;
using System.IO;
using System.Net;
using System.Web;
using System.Xml.Linq;
namespace MyProject.PostDeployActions
You can’t perform that action at this time.