fom/module-setup-fixtures-cms-data

Example CMS fixtures for the FriendsOfMagento setup-fixtures CMS adapter.

Maintainers

Package info

github.com/FriendsOfMagento/module-setup-fixtures-cms-data

Language:HTML

Type:magento2-module

pkg:composer/fom/module-setup-fixtures-cms-data

Transparency log

Statistics

Installs: 0

Dependents: 0

Suggesters: 2

Stars: 0

Open Issues: 0

1.0.0 2026-08-23 11:19 UTC

This package is auto-updated.

Last update: 2026-08-23 20:06:47 UTC


README

Example CMS page and block fixtures for FriendsOfMagento Setup Fixtures CMS.

This is a consumer module rather than an entity adapter. It demonstrates the fixture directory layout, DI registration, Magento CMS markup directives, store scopes, HTML sidecars, and optional precompiled Hyvä CSS sidecars.

Installation

composer require fom/module-setup-fixtures-cms-data
bin/magento module:enable Fom_SetupFixturesCmsData
bin/magento setup:upgrade

The CMS fixtures work without Hyvä. Install the optional fom/module-setup-fixtures-cms-hyva-tailwind-jit package only when the precompiled CSS sidecars should be persisted for Hyvä themes.

Supported versions

The matrix is current as of 2026-08-23. Magento 2.4.4–2.4.6 and PHP 8.1 are not supported.

Each Magento row was verified with Adobe's non-cumulative July and August 2026 isolated CE patches applied in sequence. These patches do not change the Composer component versions shown in the table.

Magento PHP
2.4.7 8.2, 8.3
2.4.8 8.3, 8.4
2.4.9 8.5

The package depends directly on the CMS adapter and uses its bounded Magento component families. The consuming Magento metapackage controls the exact security patch.

Mage-OS

Mage-OS PHP Magento base
3.4.0 8.3, 8.4, 8.5 2.4.9

Mage-OS 3.4 replaces the Magento 2.4.9 framework and CMS component packages, so the adapter dependency chain supports both distributions. See the Mage-OS release policy and system requirements.

Included fixtures

fixtures/cms/
├── page/
│   ├── home.json
│   ├── home.html
│   └── home.css
└── block/
    ├── footer-links.json
    ├── footer-links.html
    └── footer-links.css

The registrations in etc/di.xml use the real fixture file IDs:

<virtualType name="Fom\SetupFixturesCms\Model\Page\Installer\Virtual">
    <arguments>
        <argument name="fixtureFiles" xsi:type="array">
            <item name="home" xsi:type="string">Fom_SetupFixturesCmsData::fixtures/cms/page/home.json</item>
        </argument>
    </arguments>
</virtualType>

<virtualType name="Fom\SetupFixturesCms\Model\Block\Installer\Virtual">
    <arguments>
        <argument name="fixtureFiles" xsi:type="array">
            <item name="footer-links" xsi:type="string">Fom_SetupFixturesCmsData::fixtures/cms/block/footer-links.json</item>
        </argument>
    </arguments>
</virtualType>

The CSS files contain already compiled CSS scoped with .hcms-page-0 or .hcms-block-0. The Hyvä adapter replaces that placeholder with the saved entity ID and persists the exact active-theme map. It does not compile Tailwind source.

License

Licensed under the Open Software License 3.0.