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.Collections.Specialized; | |
using System.Web; | |
using System.Web.UI; | |
using Sitecore; | |
using Sitecore.Data.Items; | |
using Sitecore.Diagnostics; | |
using Sitecore.Shell.Applications.ContentEditor; | |
using Sitecore.StringExtensions; |
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:x="http://www.sitecore.net/xmlconfig/"> | |
<sitecore> | |
<controlSources> | |
<source mode="on" namespace="MyProject.Shell" assembly="MyProject" prefix="contentExtension"/> | |
</controlSources> | |
</sitecore> | |
</configuration> |
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 static string TitleCase(string word) | |
{ | |
string newWord = System.Text.RegularExpressions.Regex.Replace(word, "([a-z](?=[A-Z])|[A-Z](?=[A-Z][a-z]))", "$1+"); | |
newWord = System.Globalization.CultureInfo.InvariantCulture.TextInfo.ToTitleCase(newWord); | |
newWord = newWord.Replace("+", ""); | |
return newWord; | |
} | |
public static string CamelCase(string word) |
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.Collections.Specialized; | |
using System.Web; | |
using Sitecore.Data.Items; | |
using Sitecore.Diagnostics; | |
using Sitecore.Links; | |
using Sitecore.Web; | |
namespace Sitecore.Custom.Links |
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 LaunchSitecore.Applications; | |
using Sitecore; | |
using Sitecore.Exceptions; | |
using Sitecore.Pipelines.Attach; | |
using System; | |
using System.Collections.Generic; | |
namespace LaunchSitecore.Pipelines.Attach | |
{ |
NewerOlder