iletişim formu sütun düzeni değiştirmek Magento varsayılan iletişim sayfasının sütun düzeni (2 sütun sola, 2 sütun sağ vb) nerede değiştirebilirim?Magento
sayesinde
iletişim formu sütun düzeni değiştirmek Magento varsayılan iletişim sayfasının sütun düzeni (2 sütun sola, 2 sütun sağ vb) nerede değiştirebilirim?Magento
sayesinde
Birincisi, iletişim sayfası için "düzen kolu" belirler. this Bahsettiğin sayfa ise, o zaman düzen kolu
contacts_index_index
Sonraki olduğunu da Layout.xml dosyası
<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>
Değişim şablonunuzu referans setTemplate çağrısı düzen kolu bulmak
<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>
Alternatif olarak, local.xml
dosyanızın tanıtıcısını ekleyin. local.xml
dosya böylece "kazanır"
<layout>
<contacts_index_index>
<reference name="root">
<action method="setTemplate"><template>page/2columns-left.phtml</template></action>
</reference>
</contacts_index_index>
</layout>
temas sayfanın düzeni contacts.xml ayarlanır orada gider ne olursa olsun, son uygulanır. Yani, alternatif bir yöntemdir: Taban düzen klasörüne
2. Kopya
3. Şablonunuzun
düzeni klasörde yeni contacts.xml dosyası oluşturun bu dosyada içeriğin
1. Bul contacts.xml 4. varsayılan düzen olması o dosyanın içeriğini yapıştırın ve ne istediğiniz satır varsayılan düzenini
<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. Değişim setleri satırı bulun
<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. Kaydet ve 41 hat ardından, baz düzeni klasöründe contacts.xml bulun,
Öncelikle varsayılan düzenini geçersiz kılar
değişiklik
<action method="setTemplate"><template>page/2columns-right.phtml</template></action>
için bu kod
<action method="setTemplate"><template>page/2columns-left.phtml</template></action>