Skip to content

Instantly share code, notes, and snippets.

View derekcorreia's full-sized avatar

Derek Correia derekcorreia

View GitHub Profile
@derekcorreia
derekcorreia / SCSPFix.ps1
Last active January 23, 2020 15:38
Fixes Sitecore Support Package generator config sets when generated with multiple servers. Replace $source with a "Configs" directory containing ".link" files after un-archiving the SSP. Run from Powershell console.
# Change source to match path of folder from support package with .link files that won't build in config builder
# Source folder should have a web.config or web.config.link, and the app_config folder below it.
$source = "C:\SupportPackage\INSTANCE-Sitecore-prd-cd\Configs"
Write-Host "Fix Sitecore Support Package Links"
Write-Host "Source Directory defined in .ps1: " -NoNewline
Write-Host $source -ForegroundColor Yellow
Write-Host "Confirm path and press any key to begin. Press Ctrl-C to exit"
$null = $Host.UI.RawUI.ReadKey('NoEcho,IncludeKeyDown');
<?xml version="1.0" encoding="utf-8"?>
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/" xmlns:role="http://www.sitecore.net/xmlconfig/role/" xmlns:set="http://www.sitecore.net/xmlconfig/set/">
<sitecore role:require="Standalone or ContentDelivery or ContentManagement">
<sc.variable name="identityServerAuthority" value="https://dco-xpslim-si.azurewebsites.net" />
<settings>
<!-- The URI of the IdentityServer provider. -->
<setting name="FederatedAuthentication.IdentityServer.Authority" value="$(identityServerAuthority)" />
<!-- The client identifier on the IdentityServer. -->
@derekcorreia
derekcorreia / ce-rtl.css
Created January 3, 2018 21:19
Userstyle script for Sitecore 8.2 to display text fields RTL
/* Content Editor styles */
.scContentControl {
direction: rtl;
}
div#ContentWrapper {
direction: rtl;
}
.scContentControlMemo {
direction: rtl;
}