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 xmlns="http://www.w3.org/1999/xhtml"> | |
<head runat="server"> | |
<title>Sitecore Temp Folder Browser</title> | |
<link rel="Stylesheet" type="text/css" href="/sitecore/shell/themes/standard/default/WebFramework.css" /> | |
<link rel="Stylesheet" type="text/css" href="./default.css" /> | |
</head> | |
<body> | |
<script runat="server"> | |
private const string TEMP_FOLDER_PATH = @"C:\inetpub\wwwroot\Sitecore\temp\"; | |
private const int MAX_FILE_COUNT = 10; |
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
# Run this script in Sitecore Powershell Extensions | |
# It will delete the minifed files from master and publish the deletions to web | |
# Next time the site is visited they should be re-generated (if they aren't check your settings http://bit.ly/2TfrcfC) | |
# TODO: When publishing, there might be a better way to target folders in the media library instead of the hardcoded list | |
$masterItems = Get-Item -Path master: -Query "/sitecore/media library//*[@@key='optimized-min']" | |
$webItems = Get-Item -Path web: -Query "/sitecore/media library//*[@@key='optimized-min']" | |
Write-Host "Master Items: $($masterItems.length)" |
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
$props = @{ | |
InfoTitle = "Remove workflows" | |
PageSize = 10000000 | |
} | |
Write-Host "Starting work in the context of the 'master' database, under /Home item." | |
Set-Location -Path "master:/sitecore/content/<YOURNODE>" | |
# Set up variables | |
$workflowState1 = "{13FDC8BC-60B9-44E1-ADCC-CED02E0392A9}" #ID of the workflow states. DRAFT |
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
namespace Sitecore.Foundation.SitecoreExtensions.Services | |
{ | |
using Sitecore.Diagnostics; | |
using Sitecore.Foundation.DependencyInjection; | |
using Sitecore.XConnect; | |
using Sitecore.XConnect.Client; | |
using System; | |
using System.Linq; | |
/// <summary> |
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
[diff] | |
tool = vsdiffmerge | |
[difftool] | |
prompt = true | |
[merge] | |
tool = vsdiffmerge | |
[mergetool] | |
prompt = true | |
[difftool "vsdiffmerge"] | |
cmd = \"C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Enterprise\\Common7\\IDE\\CommonExtensions\\Microsoft\\TeamFoundation\\Team Explorer\\vsdiffmerge.exe\" \"$LOCAL\" \"$REMOTE\" //ignorespace //t |
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
<# | |
.SYNOPSIS | |
Find all of the items and fields which contain a specific text. | |
.LINK | |
https://vandsh.github.io/sitecore/2018/01/27/spe-search-replace.html | |
#> | |
$rootItem = Get-Item -Path "master:/sitecore/content/Home" | |
$needle = "nurse" |
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
<# | |
.SYNOPSIS | |
Updates the Workflow and Workflow state fields of content items with the given $workflowID and $workflowStateID values. | |
.DESCRIPTION | |
This script can be used when existing content is not assigned to a workflow and workflow state while it should be. | |
This scenario usually occurs when a workflow is assigned to a template but there is already content created based on a previous version of that template (where the workflow was not yet assigned). |
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
<# | |
.SYNOPSIS | |
Find all items with the specified user or role assigned. | |
.DESCRIPTION | |
This report helps identify all of the items with a specific user or role assigned and transfers to another role. | |
.NOTES | |
Michael West | |
#> |
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
<system.net> | |
<defaultProxy enabled = "true" useDefaultCredentials = "true"> | |
<proxy autoDetect="false" bypassonlocal="false" proxyaddress="http://127.0.0.1:8888" usesystemdefault="false" /> | |
</defaultProxy> | |
</system.net> |
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
using Sitecore; | |
using Sitecore.Diagnostics; | |
using Sitecore.Resources; | |
using Sitecore.Web.UI; | |
using Telerik.Web.UI; | |
using Sitecore.Data.Items; | |
namespace RTEDropList | |
{ | |
public class EditorConfiguration : Sitecore.Shell.Controls.RichTextEditor.EditorConfiguration |
NewerOlder