forked from ctidigital/magento2-configurator
-
Notifications
You must be signed in to change notification settings - Fork 0
Versioning
Aigars Bedeicis edited this page Aug 4, 2023
·
3 revisions
Works for CMS pages and blocks
If you are using create
mode for your cms content, you might encounter issue where you are not able to update page.
pages:
enabled: 1
method: code
sources:
- app/etc/configurator/Pages/pages.yaml
env:
live:
mode: create
For this you can use versioning which is specified for each page individually
home:
page:
-
source: app/etc/configurator/Pages/content/home.phtml
title: Home Page
page_layout: 1column
is_active: 1
meta_title: "This Is Meta title"
version: 1
Simply add version: <version_nr>
and it will update for create mode if the version is higher than what has been run previously (versions for each page/block are stored in DB)
version_nr
should be integer