Feel the Power!

Sitecore Prefabs

Sitecore Experience Accelerator (SXA) and other similar solutions leveraging dynamic placeholders provides page designers with a powerful set of reusable components. Grid layout tools like rows and columns can allow marketers to build pages to their imagination. BUT… with great power comes… tedious set up.

I’ve really enjoyed SXA’s support to empower the client with a powerful toolset to create custom content pages. However, I’ve also found myself spending countless hours configuring rendering parameters so the page matches the graphics mock-up, or trying to match pieces of other pages that I like. Get the grid settings just right for responsive design, add that extra padding, get the right color, and variant; nest it properly within page structure components, on and on… and then do it again on the next dozen pages.

“Standard values!” you may say, or “Branch Templates”. But I’ve been wrestling more and more with content heavy sites where common groupings of renderings are used, and not so much consistent page templates. 

Introducing Sitecore Prefabs!

An author’s library of prefabricated components. This module allows you to save a section of a page as a prefab, then use it and reuse it anywhere else. Unlike SXA Composites, a prefab is a set of pre-configured renderings that get recreated at the selected location of a new page. There is no persisting link. It’s kind of like a branch template for renderings instead of page templates.

It turned out to be a bigger effort than expected. Nonetheless I’m pretty happy with how it supports difficulties like dynamic placeholders, local page data, and multiple instances.

Check it out on my GitHub, https://github.com/digitalParkour/Community.Foundation.Prefabs/releases. Sitecore packages and source code available. I’d love to get your feedback.

Contact Us Today!

About Author

James Gregory
James is an NIU grad with a major in computer science, theoretical emphasis, and math minor. He's been developing websites since 2001. After gaining experience designing custom platforms, e-commerce, and automation solutions James joined AmericanEagle.com in 2013, focusing on Sitecore. Twice awarded Sitecore MVP and two time winner of the annual Sitecore Hackathon he continues to help clients get the most out of their technology. When not tinkering with tech, James enjoys disc golf and a good strategy table top game with friends.

Featured Posts