Magento template file xml with phtml file and file structure
XML file All in: App\design\frontend\base\default\layout
phtml files and folders all in: App\design\frontend\base\default\template
- Catalog.xml This is all phtml content that controls the Product List page and the product detail page that corresponds to template\catalog this folder.
- Catalogsearch.xml this is to control the search, there is a template header search box, advanced Search, has been the search results page. Corresponds to all phtml files in this folder for Template\catalogsearch.
- Checkout.xml control Checkout related pages, such as shopping cart page, shopping cart in sidebar siderbar, checkout Process page. Corresponds to the content in the Template\checkout file.
- Cms.xml This since the name is a CMS, so if the background of a CMS static page page or oneself want to write a phtml block want to siderbar in the form of a template sidebar, why not in this file statement. The corresponding folder Template\cms.
- Contacts.xml Control Contact Us page, want to change the structure of this page, from the 2 column to 1 column, you need to modify this file, corresponding to the Template\contacts folder.
- Customer.xml control Login, register, forget password, user Panel page. The links on the left side of the user panel are added here. Corresponds to the Template\customer folder.
- Directory.xml control currency-related content, the default in the left column shows the currency drop-down menu that is controlled in this file, corresponding to the Template\directory folder.
- Downloadable.xml is related to downloadable products, such as the link to the left column of the user panel page, can be deleted in this file. Corresponds to Template\downloadable.
- Newsletter.xml controls the XML that subscribes to the message, and the left column of the subscription is controlled in this file. Corresponds to the Template\newsletter file.
- Page.xml This is very important XML, first he defined the magento default page structure, control all the page default loading JS and CSS files, define different page structure to load different template files, and so on. For Template\page, this folder page is very important, including the Magento header, the middle section, and the bottom template file. The underlying framework file that contains all of the Magento pages.
- Poll.xml control voting in sidebar display, corresponding file Template\poll
- Reports.xml control recently view and compare products in sidebar display, corresponding file Template\reports
- Sales.xml the contents of the front desk order display are mostly related to "my orders" in the User Panel page. corresponding file Template\sales
- Sendfriend.xml Control Products Send friends sharing function, send the structure of friends page. corresponding file Template\sendfriend
- Shipping.xml the relevant contents of order shipping, corresponding documents Template\shipping
- Tag.xml controls the content of the product label, the label of the user Panel, the label of the product detail page, and the tab of the sidebar. corresponding file Template\tag
- Wishlist.xml control My Collection related features, user Panel collection, send favorites to friends, Magento head of my collection of links is also in this file control. Corresponding template file Template\wishlist
Detailed Magento file and XML correspondence relationship