Create a new template¶
To create a new collection, select the section “Templates” from the ASA 2 main menu:
On the templates main page click the button “Create new template”. The template editing page will be loaded.
A template must have a name. Only alphanumeric characters and underscore are allowed for the template name.
Templates can be referenced by ID or name in shortcodes. See mobile_tpl
With ASA 2 you can include one template in another. For more details see: Include other tempates. This makes it possible to prevent template code duplication. For example, you can create the template code for a lightbox image gallery, store it in one template and use this in every other template where you want to have this kind of gallery.
Such pieces of reusable code are called “snippets”. You should check this option, if the template is a snippet. This will keep the temlpate handling cleaner because snippets do not appear in template selection menus like in the product picker.
Template snippets will be labeled in the template overview list:
The “Item HTML” text box is where you put the HTML code for rendering your Amazon products. To place product information use Placeholders.
For more details check Surrounding container.
For each template you can define custom CSS. This will only be loaded once even if the template is used multiple times on a page.