Learn how AEM site templates can be used to predefine site structure and initial content to allow you to quickly create sites.
It is convenient to have predefined structures available to quickly deploy a new site based on a set of existing standards. Site templates are a way to combine basic site content into a convenient and reusable package.
Site templates generally contain base site content and structure as well as site styling information, known as the site theme, to get a new site started quickly. Administrators select a site template upon which to base the site during the site creation process.
Templates are powerful because they are reusable as well as customizable. And since you can have multiple templates available in your AEM installation, you have the flexibility to create different sites to meet various business needs.
AEM site templates should not be confused with page templates. Site templates define the overall structure of a site. A page template defines the structure and initial content of an individual page.
AEM site templates should not be confused with AEM site themes. AEM site themes only contain the styling information for an AEM site. AEM site templates define site structure and initial content as well as contain an AEM site theme in order to allow for quick site creation.
You can add multiple templates to AEM, which can then be used to create sites.
Sign into your AEM authoring environment and navigate to the Sites console
Tap or click Create at the top-right of the screen and from the drop-down menu select Site from template.
In the Create Site wizard, tap or click Import at the top of the left column.
In the file browser, locate the template you wish to use and tap or click Upload.
Once uploaded, it appears in the list of available templates.
Your template is uploaded and can be used to create new sites.
When selecting an existing template, it reveals information about the template in the right column.
Site templates are simply packages with a logical structure that clearly reflects the purpose of the package content. A site template has the following structure.
files: Folder with the UI kit, XD file, and possibly other files
previews: Folder with screenshots of the site template
site: Content package of the content that is copied for each site created from this template such as page templates, pages, etc.
Adobe provides a best-practices reference template that you can use as a basis for creating your own templates. The Standard Site Template is available on GitHub.
The latest release of the Standard Site Template can be downloaded and used directly for creating new sites.
Adobe provides and AEM Site Template Builder as a set of scripts for creating new site templates.
The AEM Site Template Builder is available along with usage documentation on GitHub. Front-end developer experience is required for customizing the site theme and AEM developer knowledge is required for customizing the site structure and content.