X

Magento, как определить свою тему adminhtml

Создаем свой модуль..

app/etc/modules/Itrem_Adminhtml.xml

<?xml version="1.0" encoding="UTF-8"?>
<config>
    <modules>
        <Itrem_Adminhtml>
     <active>true</active>
            <codePool>community</codePool>
            <depends>
                <Mage_Adminhtml />
            </depends>
        </Itrem_Adminhtml>
    </modules>
</config>

Теперь переопределяем стандартную админку:

/app/code/community/Itrem/Adminhtml/etc/config.xml

<?xml version="1.0" encoding="UTF-8"?>
<config>
    <modules>
        <Itrem_Adminhtml>
            <version>1.0.0.0</version>
        </Itrem_Adminhtml>
    </modules>
    <stores>
        <admin>
            <design>
                <package>
                    <name>default</name>
                </package>
                <theme>
                    <default>itrem</default>
                </theme>
            </design>
        </admin>
    </stores>
</config>

Тут в секции <design> мы можем переопределить package и тему админки.

Категории: Magento
Тэги: adminhtml