Инсталация
Изисквания
heading.anchorLabel- Magento 2 / Adobe Commerce, PHP
^8.3. - Модулите
Magento_Catalog,Magento_Ui,Magento_Backend(част от ядрото). webcode/module-base— задължителната обща основа на Webcode модулите.
Зависимостите са декларирани в composer.json:
"require": { "php": "^8.3", "magento/framework": "*", "magento/module-catalog": "*", "magento/module-ui": "*", "magento/module-backend": "*", "webcode/module-base": "*"}Инсталиране
heading.anchorLabelcomposer require webcode/module-attribute-fileАктивирайте модула и приложете промените:
bin/magento module:enable Webcode_AttributeFilebin/magento setup:upgradebin/magento setup:di:compile # при production режимbin/magento cache:flushСлед инсталация
heading.anchorLabelМодулът сам по себе си не създава атрибути — той прави даден атрибут файлов. Следваща стъпка е да създадете файлов атрибут с backend модела на модула.