Install multi-store CMS blocks

Edit on GitHub

To prepare your project to work with multi-store CMS Blocks, the following minimum module versions are required:

NAME VERSION
spryker/cms-block 2.0.0
spryker/cms-block-collector 2.0.0
spryker/cms-block-gui 2.0.0
spryker/store 1.2.0
spryker/kernel 3.13.0
spryker/collector 6.0.0
spryker/touch 4.0.0

To enable multi-store management within the CMS Block Zed Admin UI, override Spryker\Zed\Store\StoreConfig::isMultiStorePerZedEnabled() in your project to return true. This will enable the store management inside the CMS Block Zed Admin UI.

Example override

<?php
namespace Pyz\Zed\Store;

use Spryker\Zed\Store\StoreConfig as SprykerStoreConfig;

class StoreConfig extends SprykerStoreConfig
{
    /**
     * @return bool
     */
    public function isMultiStorePerZedEnabled()
    {
        return true;
    }
}

You should now be able to use the CMS Block in the administration interface to manage CMS Block-store relations. Check out our Demoshop implementation for implementation example and idea.