Site Templates site-templates
Learn how AEM site templates can be used to predefine site structure and initial content to allow you to quickly create sites.
Overview overview
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 and 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 and 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.
Adding a Site Template to AEM adding
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
https://<your-author-environment>.adobeaemcloud.com/sites.html/content
-
Select Create at the top-right of the screen and from the drop-down menu select Site from template.
-
In the Create Site wizard, select Import at the top of the left column.
-
In the file browser, locate the template you want to use and select 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 Template Structure structure
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 filespreviews
: Folder with screenshots of the site templatesite
: Content package of the content that is copied for each site created from this template such as page templates, pages, and so on.theme
: Sources of the site theme to modify how the site looks including CSS, JavaScript, and so on.
Standard Site Template standard-site-template
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.
Developing Site Templates developing-templates
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.