Вопрос

Am I able to create two different templates for the homepage and change between them whenever I want?
I'm trying to create a new homepage, but I don't want to lose the old one, so I disable it and then I tried to create a new page with the
Title: Home Page and in
URL Key: home
but when I try to Save the Page the next message is showed:
Could not save the page: Unique constraint violation found
There is any way to create a new "home page" template, without lose the old one?

Это было полезно?

Решение

If having more than one store view, we can create two cms pages for each store view with the same url key.
However, we don't need to create the new cms home page with the same url. We can create a new cms page. And then, change the home page via config: STORES > Configuration > General > Web > Default Pages > CMS Home Page

enter image description here

Лицензировано под: CC-BY-SA с атрибуция
Не связан с magento.stackexchange
scroll top