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 System.Web; | |
using Sitecore.Diagnostics; | |
using Sitecore.Resources.Media; | |
using System; | |
using System.Linq; | |
using Sitecore.Data.Items; | |
using Sitecore.IO; | |
namespace MyProject.Custom.Media | |
{ |
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
<?xml version="1.0" encoding="utf-8" ?> | |
<control xmlns:def="Definition" xmlns="http://schemas.sitecore.net/Visual-Studio-Intellisense"> | |
<Sitecore.Shell.Applications.Dialogs.SelectRendering> | |
<FormDialog ID="Dialog" Icon="Core/32x32/open_document.png" Header="Open Item" | |
Text="Select the item that you wish to open. Then click the Open button." OKButton="Open"> | |
<Stylesheet Src="SelectItemWithThumbnails.css" DeviceDependant="true" /> | |
<CodeBeside Type="MyProject.CMS.Custom.Dialogs.SelectRenderingTabbed.SelectRenderingForm, ARM.CMS.Custom"/> | |
<DataContext ID="DataContext" Root="/"/> |
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
<%@ Page Language="C#" AutoEventWireup="true" Debug="true" %> | |
<%@ Import Namespace="System.Linq" %> | |
<%@ Import Namespace="Sitecore" %> | |
<%@ Import Namespace="Sitecore.Configuration" %> | |
<%@ Import Namespace="Sitecore.Data" %> | |
<%@ Import Namespace="Sitecore.Data.Fields" %> | |
<%@ Import Namespace="Sitecore.Data.Items" %> | |
<%@ Import Namespace="Sitecore.Globalization" %> | |
<%@ Import Namespace="Sitecore.Layouts" %> |
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
$VerbosePreference = "Continue" | |
$newUsersFile = Receive-File -Path "C:\temp\upload" -CancelButtonName "No, I will do it using MS Excel instead" | |
$newUsers = Import-Csv -Path $newUsersFile | |
foreach($user in $newUsers) { | |
Write-Verbose "Creating User: $($user.Username)" | |
New-User -Identity $($user.Username) -Enabled -Password $($user.Password) -Email $($user.Email) -FullName "$($user.Name)" | |
$($user.Roles).Split(",") | ForEach { |
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
<?xml version="1.0" encoding="utf-8" ?> | |
<!-- | |
Purpose: Adds in an additional location to load IAR files from | |
This config can be removed if the project is upgraded to 10.2+ since the path is set ootb | |
--> | |
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/" xmlns:role="http://www.sitecore.net/xmlconfig/role/"> | |
<sitecore> | |
<databases> | |
<database id="master" role:require="Standalone or ContentManagement"> | |
<dataProviders> |
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
<?xml version="1.0" encoding="utf-8"?> | |
<configuration> | |
<!-- | |
Used to specify the default Sources for list, install and update. | |
--> | |
<packageSources> | |
<clear /> | |
<add key="Nuget" value="https://api.nuget.org/v3/index.json" /> | |
<add key="Sitecore Public Feed" value="https://sitecore.myget.org/F/sc-packages/api/v3/index.json" /> | |
<add key="Sitecore Commerce Public Feed" value="https://sitecore.myget.org/F/sc-commerce-packages/api/v3/index.json" /> |
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 |
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
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/" xmlns:role="http://www.sitecore.net/xmlconfig/role/" xmlns:security="http://www.sitecore.net/xmlconfig/security/"> | |
<sitecore role:require="ContentManagement"> | |
<eventing> | |
<eventQueueProvider> | |
<eventQueue name="web_preview" patch:after="eventQueue[@name='web']" type="Sitecore.Data.Eventing.$(database)EventQueue, Sitecore.Kernel"> | |
<param ref="dataApis/dataApi[@name='$(database)']" param1="$(name)" /> | |
<param hint="" ref="PropertyStoreProvider/store[@name='$(name)']" /> | |
</eventQueue> | |
</eventQueueProvider> |
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
// To view the default settings, hold "alt" while clicking on the "Settings" button. | |
// For documentation on these settings, see: https://aka.ms/terminal-documentation | |
{ | |
"$schema": "https://aka.ms/terminal-profiles-schema", | |
"defaultProfile": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}", | |
"profiles": |
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
$tempFolder = [Sitecore.Update.Utils.FileUtils]::InstallationHistoryRoot | |
$historyFolder = [Sitecore.MainUtil]::MapPath($tempFolder) | |
#get the latest update folder | |
$latestUpdate = Get-ChildItem -Path $historyFolder | Sort-Object LastAccessTime -Descending | Select-Object -First 1 | |
Write-Host $latestUpdate.FullName | |
[Sitecore.Update.Engine.PackageGenerator]::ConvertRollbackPackage( ` | |
$latestUpdate.FullName + "\rollbackPackage.rlb", ` | |
$latestUpdate.FullName + "\rollbackPackage.update") |
NewerOlder