Skip to Content
Orchard CMS: Up and Running
book

Orchard CMS: Up and Running

by John Zablocki
May 2012
Beginner to intermediate content levelBeginner to intermediate
132 pages
3h 16m
English
O'Reilly Media, Inc.
Content preview from Orchard CMS: Up and Running

Chapter 8. Maintaining Orchard Sites

We’ve seen that installing Orchard themes and modules simply requires copying files into well-known directories. If we were to create a second Orchard site, we could simply copy our modules and theme into the Modules and Themes directories under the Orchard.Web project for the new site. However, we’ve already seen a better way to share modules—the Orchard Gallery.

Packaging Themes and Modules

Though the Orchard team has supplied the Gallery with many useful modules, most of the nearly 400 packages (as of the writing of this book) have been contributed by Orchard users. Though we created our theme and modules to satisfy the needs of the Daisy’s Gone website, there’s nothing that would prevent us from sharing our creations with the Orchard community.

Note

Our theme and modules were intentionally kept simple. It’s arguably reasonable to share a module or theme with limited functionality. Just be sure not to call it a 1.0 product! In fact, sharing a pre-1.0 version is a good way to help shape your project by getting early feedback.

We’ll first package up our theme. “Daisy’s Theme” isn’t likely to win any UI contests, but you never know who might find our minimalist approach to design appealing. To start the process, we’ll return to the command line and enable the Orchard.Packaging module:

orchard> feature enable Orchard.Packaging
Enabling features Orchard.Packaging
Packaging was enabled

Once this module is enabled, we’ll be able to use it to create, install, ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

ASP.NET MVC 4 in Action

ASP.NET MVC 4 in Action

Matthew Hinze, Jeremy Skinner, Jeffrey Palermo, James Bogard, Eric Hexter
ASP.NET Core and Vue.js

ASP.NET Core and Vue.js

Devlin Basilan Duldulao

Publisher Resources

ISBN: 9781449339746Catalog PageErrata