12
A
回答
17
首先,確定聯繫頁面的「佈局句柄」。如果this是你在談論的頁面,那麼你的佈局句柄是
contacts_index_index
接下來,找到佈局處理您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>
或者,手柄引用添加到您的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>
6
接觸頁面的佈局設置在contacts.xml。因此,另一種方法是:在基地佈局文件夾
2.複製該文件中的內容
3.創建模板
的佈局文件夾的新contacts.xml文件
1.查找contacts.xml 4.粘貼文件的內容,發現設置默認佈局
<reference name="root">
<action method="setTemplate"><template>page/2columns-left.phtml</template></action>
<action method="setHeaderTitle" translate="title" module="contacts"><title>Contact Us</title></action>
</reference>
5.更改了該行以任何你想要的行默認的佈局是
<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>
6.保存,並且它覆蓋默認佈局
1
首先,查找contacts.xml在基座佈局文件夾,然後在41線,
變化從
<action method="setTemplate"><template>page/2columns-right.phtml</template></action>
到
這個代碼<action method="setTemplate"><template>page/2columns-left.phtml</template></action>
相關問題
- 1. Magento 1.9更改佈局列
- 2. 更改FAQ的Magento佈局
- 3. Magento的列表佈局XML
- 4. 更改Magento產品選項的佈局
- 5. Android更改項目的列表佈局
- 6. SQLite更改列表的佈局
- 7. Magento上的多個聯繫表格
- 8. 使用CSS更改表格佈局
- 9. Magento 1.6更改搜索佈局
- 10. 如何改變按鈕的格式和在wordpress中的聯繫表格7格式的佈局
- 11. PHP的聯繫表格佈局不允許在電子郵件
- 12. 將magento聯繫表格電子郵件的「From」字段更改爲發件人
- 13. 如何將此表格佈局更改爲CSS佈局?
- 14. Magento託管 - 更改搜索佈局/默認佈局
- 15. 更改Django管理列表佈局
- 16. 3列流佈局vs表格佈局
- 17. Magento:發送聯繫表格與jquery
- 18. 如何選擇Magento中的列布局
- 19. 如何更改UICollectionView的網格和列表在iOS中的佈局
- 20. 更改Magento中的產品選項佈局
- 21. 如何更改Magento中的頁面佈局?
- 22. 將聯繫表格添加到magento中的靜態塊中
- 23. java中的表格佈局
- 24. Wordpress中的聯繫表格
- 25. 的Android收藏的聯繫人佈局
- 26. 聯盟表的佈局
- 27. 無法更改固定佈局表中的列大小
- 28. 2系列divs中的列布局
- 29. Magento列布局問題
- 30. Magento 1列布局困境