This file contains hidden or 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
<!--For usage remove *xml* from file name. --> | |
<?xml version="1.0" encoding="utf-8" ?> | |
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/"> | |
<sitecore> | |
<exm> | |
<eds> | |
<smtpSettings type="Sitecore.EDS.Core.Net.Smtp.SmtpSettings, Sitecore.EDS.Core" singleInstance="true"> | |
<server>email-smtp.us-west-2.amazonaws.com</server> | |
<port>25</port> | |
<userName>SMTP Username as provided by AWS, NOT your Amazon account username</userName> |
This file contains hidden or 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.Analytics.Aggregation.Data.Model; | |
using Sitecore.ExperienceAnalytics.Aggregation.Dimensions; | |
using System; | |
namespace TheCodeAttic.ExperienceAnalytics.Aggregation | |
{ | |
public class CustomerTypeVisitDimensionBase : VisitDimensionBase | |
{ | |
public CustomerTypeVisitDimensionBase(Guid dimensionId): base(dimensionId) | |
{ |
This file contains hidden or 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.Analytics.Aggregation.History; | |
using Sitecore.Analytics.Aggregation.History.Remoting; | |
using Sitecore.Configuration; | |
using Sitecore.Xml; | |
using System; | |
using System.Xml; | |
namespace TheCodeAttic.ExperienceAnalytics.Aggregation | |
{ | |
public class RebuildReports |
This file contains hidden or 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
{ | |
"totalRecordCount": 13, | |
"messages": [], | |
"data": { | |
"localization": { | |
"fields": [ | |
{ | |
"field": "key", | |
"translations": {} | |
}, |
This file contains hidden or 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 xmlns:x="http://www.sitecore.net/xmlconfig/"> | |
<sitecore> | |
<commands> | |
<command name="thecodeattic:collapseall" | |
type="TheCodeAttic.CustomContentEditorButtons.CollapseAllCommand, TheCodeAttic.CustomContentEditorButtons"/> | |
<command name="thecodeattic:expandall" | |
type="TheCodeAttic.CustomContentEditorButtons.ExpandAllCommand, TheCodeAttic.CustomContentEditorButtons"/> | |
</commands> | |
</sitecore> |
This file contains hidden or 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
scContentEditor.prototype.toggleSection = function (id, sectionName) { | |
var el = document.getElementById(id); | |
if (el == null) { | |
return; | |
} | |
var nextSibling = el.nextSibling; | |
var visible = nextSibling.style.display == "none"; | |
el.className = visible ? "scEditorSectionCaptionExpanded" : "scEditorSectionCaptionCollapsed"; |
This file contains hidden or 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.Shell.Framework.Commands; | |
namespace TheCodeAttic.CustomContentEditorButtons | |
{ | |
public class CollapseAllCommand : Command | |
{ | |
public override void Execute(CommandContext context) | |
{ | |
Sitecore.Context.ClientPage.ClientResponse.Eval("TheCodeAttic_CollapseAll();"); | |
} |
This file contains hidden or 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
<!-- NOTE: After download rename to '.CONFIG', xml is used for better formating in Gist--> | |
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/"> | |
<sitecore> | |
<contentSearch> | |
<configuration type="Sitecore.ContentSearch.ContentSearchConfiguration, Sitecore.ContentSearch"> | |
<indexes hint="list:AddIndex"> | |
<index id="sitecore_master_index" type="Sitecore.ContentSearch.SolrProvider.SolrSearchIndex, Sitecore.ContentSearch.SolrProvider"> | |
<param desc="core">itembuckets</param> | |
</index> | |
<index id="sitecore_web_index" type="Sitecore.ContentSearch.SolrProvider.SolrSearchIndex, Sitecore.ContentSearch.SolrProvider"> |
This file contains hidden or 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
protected override bool Execute(T ruleContext) | |
{ | |
Assert.ArgumentNotNull((object)ruleContext, "ruleContext"); | |
Assert.IsNotNull((object)Tracker.Current, "Tracker.Current must be not null"); | |
Assert.IsNotNull((object)Tracker.Current.Contact, "Tracker.Current.Contact must be not null"); | |
if (string.IsNullOrWhiteSpace(ContactFacetMemberPath) || Tracker.Current.Contact == null) | |
return false; | |
//Custom method that reads the facet member XML path and using reflection retrieves the value. |
This file contains hidden or 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
public void Execute(XElement element, string name, UrlString parameters, string value) | |
{ | |
Assert.ArgumentNotNull((object)element, "element"); | |
Assert.ArgumentNotNull((object)name, "name"); | |
Assert.ArgumentNotNull((object)parameters, "parameters"); | |
Assert.ArgumentNotNull((object)value, "value"); | |
UrlString str = new UrlString("/sitecore/shell/~/xaml/ContactFacetDialog.aspx?ti=Contact Facet Picker&txt=Select a contact facet property&spk="+value); | |
SheerResponse.ShowModalDialog(str.ToString(), true); | |
} |