Menu
Feedback
Start here
Tutorials


What are templates?

This functionality is available for stores using the Legacy Portal technology.

Templates are the files that contain the code of the pages of your web site. They are responsible, among other things, for determining how the information will appear on the screen (including the position of the placeholders).

In VTEX platform, templates are divided into two types:

  • HTML Templates (or page templates): they are the ones that structure the HTML code and reference JavaScript and CSS files to be used in the pages of the web site.
  • Shelves Templates: Define the structure and content of shelves, elements that group products from view criteria, and can be used on more than one page.

This division exists to facilitate the organization of the templates and, consequently, the code of your web site. Imagine you want to change the code on a shelf that appears on several different pages. It's much more practical to edit a single file than to access the templates that contain the codes of each one.

In addition to these two basic types, there is also a subdivision of the page templates which is called Sub Templates. Like shelves, they are elements that will appear on most (or all) pages of your web site, such as footers, menus, headers and others. Therefore, they also have their own repository.

And speaking of organization, you will find all templates in Storefront > Layout > CMS, gathered in folders according to their type (HTML or Shelves). Sub Templates are in the folder of the same name, which is inside the HTML Templates directory. There, you will be able to create new templates and edit the ones that already exist.

{"base64":"  ","img":{"width":1519,"height":571,"type":"png","mime":"image/png","wUnits":"px","hUnits":"px","length":30578,"url":"//images.ctfassets.net/alneenqid6w5/JJxxdcGFq04SKmaqas6Oy/5c7a29f8676d68cc0d4dc7bfcf639ded/cms.png"}}

Contributors
0
Was this helpful?
Yes
No
Suggest Edits (GitHub)
Layout Overview
« Previous
What are layouts?
Next »
Contributors
0
On this page
Still got questions?
Ask the community
Find solutions and share ideas in the VTEX community.
Join our community
Request support from VTEX
For personalized assistance, contact our experts.
Open a support ticket
GithubDeveloper portalCommunityFeedback