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
############################################################ | |
# This Script can be used for export Sitecore Item tree data | |
# This can be used for comparison scenarios like | |
# 1. Compare content of different databases eg: "master and web" | |
# 2. Compare content between environments eg: "local, dev, staging, prod" | |
# 3. Versions or languages | |
# Benefints: only export field you want to compare/inspect (less noise, like update fields and so on) | |
# Note: the scripts only deliverys the export. Comparision have to be done with a different tool (winmerge, baretail, kdiff etc. | |
# Preconditions: Powerhshell Sitecore Extensions installed | |
############################################################ |
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.Collections.Generic; | |
using System.Linq; | |
using Sitecore.Configuration; | |
using Sitecore.Data.Managers; | |
using Sitecore.Diagnostics; | |
using Sitecore.Globalization; | |
using Sitecore.Pipelines.HttpRequest; | |
using Sitecore.Web; | |
using Sitecore.Sites; |
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
<link rel="alternate" hreflang="x-default" href="https://www.mysite.com/" /> | |
<link rel="alternate" hreflang="de" href="https://www.mysite.com/de-de" /> | |
<link rel="alternate" hreflang="en" href="https://www.mysite.com/en-de" /> | |
<link rel="alternate" hreflang="es" href="https://www.mysite.com/es-es" /> | |
<link rel="alternate" hreflang="fr" href="https://www.mysite.com/fr-fr" /> | |
<link rel="alternate" hreflang="zh" href="https://www.mysite.com/zh-cn" /> | |
<link rel="alternate" hreflang="zh-CN" href="https://www.mysite.com/zh-cn" /> | |
<link rel="alternate" hreflang="en-US" href="https://www.mysite.com/en-us" /> | |
<link rel="alternate" hreflang="de-DE" href="https://www.mysite.com/de-de" /> | |
<link rel="alternate" hreflang="en-DE" href="https://www.mysite.com/en-de" /> |
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; | |
using System.Net; | |
using System.Text.RegularExpressions; | |
using Sitecore.Data.Items; | |
using Sitecore.Rules; | |
using Sitecore.Rules.Actions; | |
namespace TAC.Internet.Web.CMS.Client.Rules.ItemSaved | |
{ | |
public class CopyFieldToField<T> : RuleAction<T> where T : RuleContext |
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
<div class="molecule-parent"> | |
<p>Parent</p> | |
<div class="atom-subcomponent parent-default subcomponent-overwrite"> | |
<div>Subcomponent</div> | |
</div> | |
</div> |
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
<div class="molecule-parent"> | |
<p>Parent</p> | |
<div class="atom-subcomponent subcomponent-overwrite"> | |
<div>Subcomponent</div> | |
</div> | |
</div> |
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
<div class="molecule-parent"> | |
<p>Parent</p> | |
<div class="atom-subcomponent subcomponent-default"> | |
<div>Subcomponent</div> | |
</div> | |
</div> |
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
// Model for parent.hbs | |
public class ParentComponentModel { | |
public string Text { get; set; } | |
public string Modifier { get; set; } = "parent-default"; | |
public SubcomponentModel Subcomponent { get; set; } | |
} | |
// Model for subcomponent.hbs | |
public class SubcomponentModel { | |
public string Content { get; set; } |
NewerOlder