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.Data.Engines; | |
using Sitecore.Data.Proxies; | |
using Sitecore.Install; | |
using Sitecore.Install.Files; | |
using Sitecore.Install.Framework; | |
using Sitecore.Install.Items; | |
using Sitecore.Install.Metadata; | |
using Sitecore.Install.Utils; | |
using Sitecore.Install.Zip; |
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
query:ancestor-or-self::*[@@templatename='Site']/home/content-node |
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
Context.Response.Status = "301 Moved Permanently"; | |
Context.Response.AddHeader("Location", url); | |
Context.Response.End(); |
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
* Performance analysis with dotTrace | |
* DMS EventQueue and MaxSize limits | |
* Using Unicorn for distributed sitecore development | |
* Leveraging the power of GitHub to produce high performing teams | |
* Using The Domain Model Design Pattern to Isolate Sitecore as a Dependency |
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
Public Interface IBrewCoffeee | |
{ | |
void DoSomething; | |
} | |
Public Interface IStarbucksBrewsCoffee | |
{ | |
void DoSomething; | |
void DoSomething1; | |
void DoSomething2; |
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
1. Sitecore ReSharper add-on. | |
2. Lucene profiling utility (output queries executed against indexes). | |
3. Sitecore Rocks add-on for universal Rendering & Layout modification. | |
4. Pause scheduled PublishAgent for incremental publish. | |
5. Andover | |
(a) Valid archive email to prevent errors and application crashes. |
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
// Move renderings example usage | |
var rendering = device.Renderings.Cast<RenderingDefinition>().SingleOrDefault(r => r.ItemID == MyRenderingId); | |
device.MoveRenderingUp(rendering); | |
item[Sitecore.FieldIDs.LayoutField] = layoutDefinition.ToXml(); | |
// DeviceDefinition Extensions | |
public static class DeviceDefinitionExtensions | |
{ | |
public static void MoveRenderingDown(this DeviceDefinition deviceDefinition, RenderingDefinition renderingDefinition) | |
{ |
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
// maintaining format of original source. | |
public override bool SetValidatorProperties(BaseValidator validator) | |
{ | |
base.SetValidatorProperties(validator); | |
object obj = null; | |
if (validator as ICloneable != null) | |
{ | |
obj = ((ICloneable)validator).Clone(); | |
} |
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.Form.Core.Validators; | |
using System.Web.UI; | |
using System.Web.UI.WebControls; | |
namespace Sitecore.Form.Core.Client.Validators | |
{ | |
public class PasswordConfimationValidator : FormCustomValidator | |
{ | |
protected override bool OnServerValidate(string value) | |
{ |
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.Form.Submit | |
{ | |
public class CheckUserPassword : CheckUserAction | |
{ | |
... | |
public override void Execute(ID formid, IEnumerable<ControlResult> fields) | |
{ | |
string empty; | |
string failedMessage = base.FailedMessage; | |
string str = failedMessage; |
OlderNewer