Detailed Magento file and XML correspondence relationship

Source: Internet
Author: User

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

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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.
  6. 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.
  7. 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.
  8. 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.
  9. 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.
  10. 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.
  11. Poll.xml control voting in sidebar display, corresponding file Template\poll
  12. Reports.xml control recently view and compare products in sidebar display, corresponding file Template\reports
  13. 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
  14. Sendfriend.xml Control Products Send friends sharing function, send the structure of friends page. corresponding file Template\sendfriend
  15. Shipping.xml the relevant contents of order shipping, corresponding documents Template\shipping
  16. 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
  17. 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.