For the complete documentation index, see llms.txt. This page is also available as Markdown.

Elements

Learn how to use Elements to add reusable content to your website.

Instead of replicating the same content on a per-page basis, Elements allow you to create reusable content. By creating your content once, you can reuse it across as many pages and documents as you need.

Elements are ideal for call-to-action blocks, banners, and other shared content that appears across multiple pages.

Elements hold one piece of content that's shared and centrally updated everywhere it's referenced. If you instead need editors to compose different content per page from a set of block types, use the Block List Editor instead.

Library

Elements are managed from the Library section in the Umbraco Backoffice.

The Library section is a central editorial hub for reusable content. By default all user groups except Sensitive data and Translators have access to the section.

If the project was started on versions before Umbraco 18, only the Administrators user group has access to the Library section.

Manage permissions to the Library section from the Users section in the Umbraco backoffice.

Manage Elements

Elements are configured in the Settings section and managed from the Library section. They are referenced in your content using the Element Picker property.

Build and Configure Elements

Elements are created as Element Types in the Settings section of the Umbraco backoffice. As with all Element Types, Elements are not routable and are not attached to a Template.

Toggle the Allow in Library option on the Structure Workspace View to turn your Element Type into an Element.

Element Type Structure tab with Allow in Library toggled

You can add groups, tabs, and properties like you would to any other Element and Document Type.

Since your project will contain different Document Types, group your Elements into a dedicated folder to keep your workspace organized.

Create Elements

With your Element configured, you can start using it to create reusable content in the Library section.

  1. Click the + icon.

  2. Select which Element Type you want to base the Element on.

  3. Fill in the relevant properties.

  4. Save or Save and Publish once the content is ready.

The Library section with an Element selected

To maintain an overview of your reusable content, it can be a good idea to use folders for organizing the content in your Library.

Use the Info workspace view to find relevant details about the element, such as history and where the element is used.

Element Type Structure tab with Allow in Library toggled

Use Elements

Once you have created the elements in the Library section, they can be referenced anywhere an Element Picker has been configured.

Element Type Structure tab with Allow in Library toggled

You can add elements to your content in the Content section using an Element Picker. This needs to be added as a property on the Document Type. Read the Element Picker article to learn more about how to use and configure it.

Elements and Blocks (used by the Block List and Block Grid editors) don't mix within the same property. A Block List or Block Grid always stores its block content inline. It cannot be configured so that a block type is either inline content or a reference to a Library Element. To combine both approaches on one page, add an Element Picker property and a Block List/Block Grid property separately.

Making changes to an Element in the Library section, will update all instances of the content throughout the project.

Last updated

Was this helpful?