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:patch="http://www.sitecore.net/xmlconfig/"> | |
<sitecore> | |
<encodeNameReplacements> | |
<replace mode="on" find=" " replaceWith="-" /> | |
</encodeNameReplacements> | |
</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
<%@ Page Language="C#" AutoEventWireup="true" Inherits="System.Web.UI.Page" Debug="true" %> | |
<%@ Import Namespace="Sitecore" %> | |
<%@ Import Namespace="Sitecore.Configuration" %> | |
<%@ Import Namespace="Sitecore.Jobs" %> | |
<%@ Import Namespace="Sitecore.Search" %> | |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head runat="server"> | |
<title>Rebuild database crawlers</title> |
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
private void CreateItem(IWorkflow workflow, Item item, System.Web.UI.Control control) | |
{ | |
Assert.ArgumentNotNull(workflow, "workflow"); | |
Assert.ArgumentNotNull(item, "item"); | |
Assert.ArgumentNotNull(control, "control"); | |
XmlControl webControl = Resource.GetWebControl("WorkboxItem") as XmlControl; | |
Assert.IsNotNull(webControl, "workboxItem is null"); | |
control.Controls.Add(webControl); | |
StringBuilder builder = new StringBuilder(" - ("); | |
Language language = item.Language; |
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
<CodeBeside Type="Heinemann.DigitalCampus.Framework.Shell.Applications.Workbox.WorkboxForm,Heinemann.DigitalCampus.Framework"/> |
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
<Border Margin="5px 0px 8px 0px"> | |
<Literal Foreground="#999999" Text="Path:"/> <Literal Text="$Path"/>  | |
</Border> |
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 SitecoreItemExtensions | |
{ | |
public static bool IsOf(this Sitecore.Data.Items.Item item, Sitecore.Data.ID templateId) | |
{ | |
if (item.TemplateID == templateId) return true; | |
foreach (Sitecore.Data.Items.TemplateItem ti in item.Template.BaseTemplates) | |
{ | |
if (ti.ID == templateId) return true; | |
} |