A module for the Orchard CMS that provides various useful bits and bobs for site building.
Switch branches/tags
Clone or download
sfmskywalker Fixed missing feature dependency
The *IDeliverable.Bits.Navigation* feature is associated with class `ActionLinkPartHandler`, which depends on `IRouteValuesProcessor`. The class implementing `IRouteValuesProcessor`, `RouteValuesProcessor` , however, is linked to the *IDeliverable.Bits* base feature.
Latest commit dcf5c11 Jun 30, 2017
Type Name Latest commit message Commit time
Failed to load latest commit information.
ConditionProviders Removed build warning and fixed private field name. May 2, 2016
Filters Changed timing of app root resolution. Apr 27, 2016
Helpers Added Summarizer. Feb 7, 2017
Layouts Added snippet field type alternates. Feb 7, 2017
Navigation Added the extended TaxonomyNavigationProvider implementation. Feb 7, 2017
Projections Removed unused field. May 2, 2016
Properties Added app relative URL filter. Apr 18, 2016
Recipes/Builders Added RemovePublishedUtcStep. Apr 19, 2016
Relationships Refactor-renamed ConnectedContent to Relationships. Nov 11, 2015
Routing Added PartialAliasRoute and associated helper. Feb 7, 2017
Services Fixed CurrentContentAccessor to support homepage. May 13, 2016
Summarizer Added Summarizer. Feb 7, 2017
Tests Added app relative URL filter. Apr 18, 2016
Tokens Fixed CurrentContentAccessor to support homepage. May 13, 2016
Views/EditorTemplates Added HTML snippet field type. Feb 7, 2017
.gitignore Initial commit. Nov 11, 2015
IDeliverable.Bits.csproj Remove reference to IDeliverable.Bits.RegularExpressions. This refere… Mar 16, 2017
IDeliverable.Bits.nuspec Updated metadata and documentation. Dec 17, 2016
Module.txt Fixed missing feature dependency Jun 30, 2017
Placement.info Added Action Link menu item and associated services. Feb 6, 2017
README.md Updated metadata and documentation. Dec 17, 2016
Web.config Added Summarizer. Feb 7, 2017
packages.config Added Summarizer. Feb 7, 2017



IDeliverable.Bits is a module for the Orchard CMS that provides various useful pieces of functionality commonly needed for site building. While working on site building projects we often find ourselves needing utility functionality that would be useful beyond the project at hand. This module is the place where we collect such useful bits and bobs, to re-use in future projects and to contribute to anyone else who might find them useful.



Adds miscellaneous useful bits and bobs.

Navigation Bits

Adds useful bits and bobs related to navigation.

Recipes Bits

Adds useful bits and bobs related to recipes.

Layout Bits

Adds useful bits and bobs related to layouts, such as useful elements and shape alternates.

Projection Bits

Adds useful bits and bobs related to projections, such as useful additional projection filters.

Content Sockets

Adds the ability to associate content items with one another without the need for taxonomies.

Content Picker Field Trace-Back

Extends ContentPickerField by storing the ID of the content item to which the ContentPickerField is attached to on the other end of the relationship (the content item being referred to by the ContentPickerField).

For example, let's say your website has a Session content item that represents a talk at Orchard Harvest. This Session has a content picker field called Speakers, where each speaker is a Speaker content item. With the default functionality provided by ContentPickerField, you can easily get the list of Speakers when you have a Session since ContentPickerField stores a list of Speaker IDs. But the other way around is not as easy; you cannot get the list of Sessions assigned to a given Speaker.

This feature makes that easier by storing the Session ID on the Speaker content item. This way, when you have a Speaker you can easily query for its assigned Sessions via the RelatedByPart. This behavior is very close to the way taxonomies work. The key difference is that you don't have to turn your content types into TaxonomyTerm types.

App-Relative URL Filter

Adds an IHtmlFilter implementation that converts app-relative URLs (starting with ~/) into relative URLs.

Sometimes your website is hosted at different paths depending on environment. For example, on developer machines the path might be /OrchardLocal, in your QA environments the path might be /Test1 and /Test2 on the same hostname, while in your production environment there might not be any path (the website is commonly hosted at the root of the hostname).

This presents a challenge when creating hyperlinks. You can't use absolute URLs because hostnames differ depending on environment. You can't use a relative URL (e.g. /OrchardLocal/about-our-company) because the path component differs between environments. In Razor views you can use app-relative URLs (e.g. ~/about-our-company) since ASP.NET MVC will replace the ~/ placeholder with the correct subpath between the root of the hostname and where the ASP.NET application root happens to reside.

But you can't use app-relative URLs in content! Sitebuilders and developers commonly try to work around this by introducing automated search and replace in recipes, or even live databases, as part of their deployment pipelines, but this is complex to implement and is brittle and error-prone.

This feature allows you to use app-relative URLs anywhere you like including in content you create and edit in the admin UI. The IHtmlFilter implementation will find and resolve these app-relative URLs in the rendered response regardless of where they come from.


This module is compatible with Orchard version 1.10.x. The module might also work on older or newer versions of Orchard but this is not guaranteed.


This module is open source and free for use under the permissive MIT license, which means you are free to change it, redistribute it and generally use it in whatever way you want.