Menu
Feedback
Start here
Tutorials


Associating a template with a layout

Tutorial valid only for Legacy CMS Stores.

Your store codes are written in the CMS templates. When the store gains access to Admin, for example, the Home template is the one that contains the code of the site's homepage.

But let's say you create a new Home2 template and want to display it on the homepage. How does the platform know that it is the Home2 template that should be shown on the homepage, not the Home template?

To indicate this, you need to associate the desired template with the layout, which is in the site folder structure within Sites and Channels.

This association is made in the layout properties setting. To get there, follow these steps:

  1. In the VTEX Admin, acesse Storefront > Layout > CMS and click on Sites and channels.
  2. Click on the website of the store you are editing.
  3. Click on the root folder (/).
  4. Search for the layout you want to edit.
  5. Click on the Template drop-down. There will be listed the templates configured in HTML Templates.
  6. Select the template you want to associate with this layout.
  7. Type yes to confirm the change (this step is necessary because this is a critical change for the site, as the page's front-end will be replaced).

{"base64":"  ","img":{"width":2976,"height":1510,"type":"png","mime":"image/png","wUnits":"px","hUnits":"px","length":252177,"url":"//images.ctfassets.net/alneenqid6w5/6ZaVxrZUn0cegcQni61zsc/58fd2f24e7b8b36636b0088d945c1204/CMS_4_1.png"}}

Contributors
3
Photo of the contributor
Photo of the contributor
Photo of the contributor
+ 3 contributors
Was this helpful?
Yes
No
Suggest Edits (GitHub)
How to create landing pages with customized URLs
« Previous
Managing placeholders
Next »
Contributors
3
Photo of the contributor
Photo of the contributor
Photo of the contributor
+ 3 contributors
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