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> | |
<contentSearch> | |
<indexConfigurations> | |
<defaultLuceneIndexConfiguration> | |
<fields hint="raw:AddComputedIndexField"> | |
<!-- indexes subcontent contents into parent's _content field in the index (for better site search) --> | |
<field fieldName="_content" type="Foo.ContentSearch.ComputedFields.SubcontentField, Foo" /> | |
</fields> | |
</defaultLuceneIndexConfiguration> |
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.Configuration; | |
using System.Web; | |
using System.Web.Configuration; | |
using Foo.Web; | |
[assembly: WebActivatorEx.PostApplicationStartMethod(typeof(AutoEncryptConnectionStrings), "AutoEncrypt")] | |
namespace Foo.Web | |
{ | |
public class AutoEncryptConnectionStrings |
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 Synthesis.Mvc.Pipelines.GetRenderer; | |
using Sitecore.Mvc.Pipelines.Response.GetModel; | |
using Sitecore.Mvc.Presentation; | |
using Synthesis; | |
namespace Synthesis.Mvc.Pipelines.GetModel | |
{ | |
public class GetFromSynthesis : GetModelProcessor | |
{ |
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
// Open the Website\sitecore\shell\Applications\Page Modes\PageEditor.js file | |
// Search for "e.keyCode == 83" | |
// Make the statement look like this: | |
//Ctrl+S | |
if (e.keyCode == 83 && e.ctrlKey) { | |
e.preventDefault(); | |
this.onSaving();//fix for 428752 | |
this.save(); | |
return; |
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
ID 32A37307-0A19-4995-949C-17D843D799D8 | |
PID 1168BC6E-35CB-41DD-9256-B828550E9E50 | |
TID FE8D0E16-455D-441E-A525-58B2128F6EFA | |
PATH /sitecore/content/test | |
--- | |
DatabaseName: master | |
SharedFields: | |
- Id: a4f985d9-98b3-4b52-aaaf-4344f6e747c6 | |
NameHint: __Workflow | |
Value: '{7121FA3D-B469-4412-A170-53A5D94A80E4}' |
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
var items = Sitecore.Context.Database.GetRootItem().Axes.GetDescendants(); | |
Response.Write("<h1>{0} Items</h1>".FormatWith(items.Length)); | |
var sw = new Stopwatch(); | |
sw.Start(); | |
var displayNamesScapi = items.Select(item => item[FieldIDs.DisplayName]).ToList(); | |
sw.Stop(); |
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
// Strips width and height attributes from Sitecore field rendered images without messing with the | |
// resizer's width and height attributes (as opposed to maxwidth/maxheight) | |
public class DimensionStrippingGetImageFieldValue : GetImageFieldValue | |
{ | |
protected override Sitecore.Xml.Xsl.ImageRenderer CreateRenderer() | |
{ | |
return new ImageRenderer(); | |
} | |
private class ImageRenderer : Sitecore.Xml.Xsl.ImageRenderer |
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
<formsDataProvider type="My.Namespace.SqlServerWfmDataProvider, My.Assembly"> | |
<param desc="connection string name">forms</param> | |
</formsDataProvider> |
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
/// <summary> | |
/// Extends the standard WFM data provider to use a regular .NET connection string name instead of a bare connection string (such that we can store all connection strings in one file) | |
/// </summary> | |
public class SqlServerWfmDataProvider : WFMDataProvider | |
{ | |
public SqlServerWfmDataProvider(string connectionStringName) : base(ConfigurationManager.ConnectionStrings[connectionStringName].ConnectionString) | |
{ | |
} | |
} |
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
<serialization> | |
<default> | |
<include database="master" path="/sitecore/templates"/> | |
<include database="core" path="/sitecore"> | |
<exclude path="/sitecore/content/Home" /> | |
</include> | |
</default> | |
<templates> | |
<include database="master" path="/sitecore/templates"/> | |
</templates> |
OlderNewer