расположение столбца изменения контакта формируется в Magento

где я могу изменить расположение столбца (оставленные 2 столбца, право на 2 столбца и т.д.) страницы контакта по умолчанию в Magento?

спасибо

12
задан pixeltocode 23 July 2010 в 00:27
поделиться

1 ответ

Сначала определите "layout handle" для страницы контактов. Если эта - та страница, о которой вы говорите, то ваш layout handle -

contacts_index_index

Далее найдите layout handle в файле layout.xml

<contacts_index_index translate="label">
    <label>Contact Us Form</label>
    <reference name="root">
        <action method="setTemplate"><template>page/2columns-right.phtml</template></action>
        <action method="setHeaderTitle" translate="title" module="contacts"><title>Contact Us</title></action>
    </reference>
    <reference name="content">
        <block type="core/template" name="contactForm" template="contacts/form.phtml"/>
    </reference>
</contacts_index_index>

Измените вызов setTemplate, чтобы он ссылался на ваш шаблон

<reference name="root">
    <action method="setTemplate"><template>page/1column.phtml</template></action>
    <action method="setHeaderTitle" translate="title" module="contacts"><title>Contact Us</title></action>
</reference>

Или добавьте ссылку на handle в файл local.xml. Файл local.xml применяется последним, поэтому все, что туда попадает, "побеждает"

<layout>
    <contacts_index_index>
        <reference name="root">
            <action method="setTemplate"><template>page/2columns-left.phtml</template></action>    
        </reference>
    </contacts_index_index>
</layout>   
17
ответ дан 2 December 2019 в 06:25
поделиться
Другие вопросы по тегам:

Похожие вопросы: