Single Templates

In this article, we're going to introduce you to Cornerstone's Single Layout Builder and walk you through its various functions.

  1. Getting Started
  2. Designing Your First Single Template
  3. Assigning Your First Single Template
  4. Videos
  5. Summary

The Single Layout Builder provides users with a similar building interface to that of the Page Builder, allowing designers to take advantage of a drag and drop interface for crafting custom assets.

One primary difference here is that you are designing a repeating page template that will take advantage of database-driven Elements.

On top of that, you can assign your Single Layouts that you have created to different pages or posts on your website, as you can with the Archive Layouts and the Archive Layout Builder, allowing you to create complex site layouts that respond to the contextual needs of a particular area of your site.

Getting Started

To begin working with the Single Layout Builder, click on the plus sign (+) in the top bar to reveal the New Document pane, then click on Single:

Single Templates

Upon clicking Create, a new document of the type you selected will be added to your site and a tab will be opened for you to begin working:

Single TemplatesSingle Templates

To rename your document, you can double-click in the workspace header title or go to the Settings tab found on the Outline pane. Once finished, clicking the Save button will apply your changes:

Single Templates

Designing Your First Single Template

To get an understanding for how the workflow of designing a Single Template might differ from a typical Page Template in terms of leveraging Dynamic Content and the application of your design, we recommend that you start by watching the video below.

While this was recorded with an older version of Cornerstone, the same principals still hold true and it serves as an excellent case study in seeing how to put together the pieces that make up a Single Template:

At this point, hopefully you're starting to connect some of the dots for the huge role that the Layout Builder serves in the site building process. Having full control over the base layout and design for a specific singular or archival template opens up many functional and design possibilities.

Assigning Your First Single Template

Now that we've created our asset, all that we have left to do is assign the asset to the appropriate context on your site. To do this, click on the Settings tab on the Outline pane and locate Assignment Conditions:

Single Templates

Clicking on that control will reveal the following popup:

Single Templates

To get started, click Add Condition Group to specify a context in which you would like your layout to be used. For example, if you wanted your layout to show up for all posts on your site, you would select Post Type in the first dropdown, set the middle toggle to is, then select Post on the final dropdown:

Single Templates

If you designed your template to show up on either posts or pages, you could include an or statement like so:

Single Templates

The Assignment Control is incredibly powerful and there are many ways you can leverage it to accomplish unique outcomes on your site. To learn more about this control, check out our Assignment Control article.

Videos

We've put together a step-by-step tutorial on using Archive Templates in addition to the video shown above. Definitely check that out when you have some time!

We also routinely add new videos to our YouTube Channel so be sure to subscribe to get the latest.

Summary

We've covered an introduction to the Single Layout Builder, how to design and assign assets, in addition to video tutorials you can explore for more concepts. We hope you enjoy these powerful additions to Cornerstone!

See something inaccurate? Let us know