Increase the Size of the Workbox Workflows Selector

If you are anything like me, you are super annoyed at the size of the Workbox's Wrokflows selector. We can make it bigger by modifying the CSS of /Website/sitecore/shell/Themes/Standard/Default/Workbox.css. .scRibbonToolbarStrip { min-height: 120px !important; } .scWorkboxContentContainer { margin-top: 120px !important; } .scRibbon .chunk{ height: 120px !important; } .scRibbon .chunk .panel { height: 80px !important; }... Continue Reading →

View All Items in the Sitecore Archive for Non Admin Users

I recently had a requirement that specific non-admin content authors should be able to view all items in the Sitecore Archive. I opened Sitecore.Shell.Applications.Archives.RecycleBin.RecycleBinPage from the Sitecore.Client.dll in dotPeek and noticed that the method GetArchiveEntries() calls into the ArchiveManager.GetArchive and returns an IPageable object. So, we can override the default archive provider and return our... Continue Reading →

Programmatically Get Datasource Items of a Sitecore Item

If you need to get the datasource item's of a particular Sitecore item, we can write a few extension methods to help us out! [code language="csharp"] public static class ItemExtensions { public static RenderingReference[] GetRenderingReferences(this Item i) { if (i == null) { return new RenderingReference[0]; } return i.Visualization.GetRenderings(Sitecore.Context.Device, false); } public static List<Item> GetDataSourceItems(this... Continue Reading →

Passing Configuration Data into a Sitecore Pipeline Processor

I've created an example pipeline config and an example pipeline processor to explain how to pass configuration data to your custom processor. Let's take a look at the patch config and example processor code: [code language="csharp"] using Sitecore.Collections; using Sitecore.Diagnostics; using Sitecore.Pipelines; using Sitecore.Xml; using System.Collections; using System.Collections.Generic; using System.Xml; namespace Hi.Sc.Pipelines { public class... Continue Reading →

Sitecore Source Field Code: query that implements IDataSource

I came across something cool today! When a CheckList, MultiList, TreeList, or etc. field are on your template, they eventually call into the Sitecore.Web.UI.HtmlControls.Data.LookupSources.GetItems() class and method. This calls the getLookupSourceItems pipline. This pipeline contains the following processor: [code language="xml"] <getLookupSourceItems> <processor type="Sitecore.Buckets.FieldTypes.CustomDataSource, Sitecore.Buckets" patch:source="Sitecore.Buckets.config"/> </getLookupSourceItems> [/code] If we take a look at Sitecore.Buckets.FieldTypes.CustomDataSource in... Continue Reading →

Powered by

Up ↑