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
<?xml version="1.0" encoding="utf-8" ?> | |
<control xmlns:def="Definition" xmlns="http://schemas.sitecore.net/Visual-Studio-Intellisense"> | |
<Sitecore.Shell.Applications.Dialogs.SelectRendering> | |
<FormDialog ID="Dialog" Icon="Core/32x32/open_document.png" Header="Open Item" | |
Text="Select the item that you wish to open. Then click the Open button." OKButton="Open"> | |
<Stylesheet Src="SelectItemWithThumbnails.css" DeviceDependant="true" /> | |
<CodeBeside Type="Helixbase.Feature.Fun.SelectRenderingForm,Helixbase.Feature.Fun"/> | |
<DataContext ID="DataContext" Root="/"/> |
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
<sitecore> | |
<events> | |
<event name="user:deleted"> | |
<handler type="Helixbase.Feature.ItemUnlock.Events.RemovedUserEventHandler, Helixbase.Feature.ItemUnlock" method="OnUserDeletedUnlockFiles" /> | |
</event> | |
</events> | |
</sitecore> |
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 class MapsConfigFactoryExtension | |
{ | |
public static void AddFluentMaps(this IConfigFactory<IGlassMap> mapsConfigFactory, params string[] assemblyFilters) | |
{ | |
var assemblies = GetAssemblies.GetByFilter(assemblyFilters); | |
AddFluentMaps(mapsConfigFactory, assemblies); | |
} | |
public static void AddFluentMaps(this IConfigFactory<IGlassMap> mapsConfigFactory, params Assembly[] assemblies) |
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 HtmlString CreateEditableExample() | |
{ | |
return new HtmlString(_glassHtml.Editable(item, i => i.SomeField, | |
new | |
{ | |
EnclosingTag = "h2", // Wrap the field in <h2> | |
DisableWebEdit = false, // Disable or enable web edit | |
ShowTitleWhenBlank = "true" // Show the field title if field is empty | |
})); | |
} |
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.IO; | |
using System.Reflection; | |
using Unicorn.ControlPanel.Headings; | |
namespace Helixbase.Feature.Fun.Unicorn.Pipelines | |
{ | |
public class HeadingServiceFun : HeadingService | |
{ | |
private static readonly Random Random = new Random(); |