Advertisement
Guest User

catalog.xml

a guest
Jul 21st, 2014
718
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 25.22 KB | None | 0 0
  1. <?xml version="1.0"?>
  2. <!--
  3. /**
  4.  * Magento
  5.  *
  6.  * NOTICE OF LICENSE
  7.  *
  8.  * This source file is subject to the Academic Free License (AFL 3.0)
  9.  * that is bundled with this package in the file LICENSE_AFL.txt.
  10.  * It is also available through the world-wide-web at this URL:
  11.  * http://opensource.org/licenses/afl-3.0.php
  12.  * If you did not receive a copy of the license and are unable to
  13.  * obtain it through the world-wide-web, please send an email
  14.  * to license@magentocommerce.com so we can send you a copy immediately.
  15.  *
  16.  * DISCLAIMER
  17.  *
  18.  * Do not edit or add to this file if you wish to upgrade Magento to newer
  19.  * versions in the future. If you wish to customize Magento for your
  20.  * needs please refer to http://www.magentocommerce.com for more information.
  21.  *
  22.  * @category    design
  23.  * @package     base_default
  24.  * @copyright   Copyright (c) 2013 Magento Inc. (http://www.magentocommerce.com)
  25.  * @license     http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
  26.  */
  27.  
  28. Supported layout update handles (action):
  29. - catalog_product_gallery
  30. - catalog_product_compare_index
  31.  
  32. Supported layout update handles (special):
  33. - default
  34. - catalog_category_default
  35. - catalog_category_layered
  36. - catalog_product_view
  37.  
  38. -->
  39. <layout version="0.1.0">
  40.  
  41. <!--
  42. Default layout, loads most of the pages
  43. -->
  44.  
  45.     <default>
  46.  
  47.         <!-- Mage_Catalog -->
  48.         <reference name="left">
  49.             <block type="core/template" name="left.permanent.callout" template="callouts/left_col.phtml">
  50.                 <action method="setImgSrc"><src>images/media/col_left_callout.jpg</src></action>
  51.                 <action method="setImgAlt" translate="alt" module="catalog"><alt>Our customer service is available 24/7. Call us at (555) 555-0123.</alt></action>
  52.                 <action method="setLinkUrl"><url>checkout/cart</url></action>
  53.             </block>
  54.         </reference>
  55.         <reference name="right">
  56.             <block type="catalog/product_compare_sidebar" before="cart_sidebar" name="catalog.compare.sidebar" template="catalog/product/compare/sidebar.phtml"/>
  57.             <block type="core/template" name="right.permanent.callout" template="callouts/right_col.phtml">
  58.                 <action method="setImgSrc"><src>images/media/col_right_callout.jpg</src></action>
  59.                 <action method="setImgAlt" translate="alt" module="catalog"><alt>Keep your eyes open for our special Back to School items and save A LOT!</alt></action>
  60.             </block>
  61.         </reference>
  62.         <reference name="footer_links">
  63.             <action method="addLink" translate="label title" module="catalog" ifconfig="catalog/seo/site_map"><label>Site Map</label><url helper="catalog/map/getCategoryUrl" /><title>Site Map</title></action>
  64.         </reference>
  65.         <block type="catalog/product_price_template" name="catalog_product_price_template" />
  66.     </default>
  67.  
  68.  
  69. <!--
  70. Category default layout
  71. -->
  72.  
  73.     <catalog_category_default translate="label">
  74.         <label>Catalog Category (Non-Anchor)</label>
  75.         <reference name="left">
  76.             <block type="catalog/navigation" name="catalog.leftnav" after="currency" template="catalog/navigation/left.phtml"/>
  77.         </reference>
  78.         <reference name="content">
  79.             <block type="catalog/category_view" name="category.products" template="catalog/category/view.phtml">
  80.                 <block type="catalog/product_list" name="product_list" template="catalog/product/list.phtml">
  81.                     <block type="catalog/product_list_toolbar" name="product_list_toolbar" template="catalog/product/list/toolbar.phtml">
  82.                         <block type="page/html_pager" name="product_list_toolbar_pager"/>
  83.                         <!-- The following code shows how to set your own pager increments -->
  84.                         <!--
  85.                             <action method="setDefaultListPerPage"><limit>4</limit></action>
  86.                             <action method="setDefaultGridPerPage"><limit>9</limit></action>
  87.                             <action method="addPagerLimit"><mode>list</mode><limit>2</limit></action>
  88.                             <action method="addPagerLimit"><mode>list</mode><limit>4</limit></action>
  89.                             <action method="addPagerLimit"><mode>list</mode><limit>6</limit></action>
  90.                             <action method="addPagerLimit"><mode>list</mode><limit>8</limit></action>
  91.                             <action method="addPagerLimit" translate="label"><mode>list</mode><limit>all</limit><label>All</label></action>
  92.                         -->
  93.                     </block>
  94.                     <action method="addColumnCountLayoutDepend"><layout>empty</layout><count>6</count></action>
  95.                     <action method="addColumnCountLayoutDepend"><layout>one_column</layout><count>5</count></action>
  96.                     <action method="addColumnCountLayoutDepend"><layout>two_columns_left</layout><count>4</count></action>
  97.                     <action method="addColumnCountLayoutDepend"><layout>two_columns_right</layout><count>4</count></action>
  98.                     <action method="addColumnCountLayoutDepend"><layout>three_columns</layout><count>3</count></action>
  99.                     <action method="setToolbarBlockName"><name>product_list_toolbar</name></action>
  100.                 </block>
  101.             </block>
  102.         </reference>
  103.     </catalog_category_default>
  104.  
  105. <!--
  106. Category layered navigation layout
  107. -->
  108.  
  109.     <catalog_category_layered translate="label">
  110.         <label>Catalog Category (Anchor)</label>
  111.         <reference name="left">
  112.             <block type="catalog/layer_view" name="catalog.leftnav" after="currency" template="catalog/layer/view.phtml"/>
  113.         </reference>
  114.         <reference name="content">
  115.             <block type="catalog/category_view" name="category.products" template="catalog/category/view.phtml">
  116.                 <block type="catalog/product_list" name="product_list" template="catalog/product/list.phtml">
  117.                     <!-- <action method="addReviewSummaryTemplate"><type>default</type><template>review/helper/su.phtml</template></action> -->
  118.                     <block type="catalog/product_list_toolbar" name="product_list_toolbar" template="catalog/product/list/toolbar.phtml">
  119.                         <block type="page/html_pager" name="product_list_toolbar_pager"/>
  120.                         <!-- The following code shows how to set your own pager increments -->
  121.                         <!--
  122.                             <action method="setDefaultListPerPage"><limit>4</limit></action>
  123.                             <action method="setDefaultGridPerPage"><limit>3</limit></action>
  124.                             <action method="addPagerLimit"><mode>list</mode><limit>2</limit></action>
  125.                             <action method="addPagerLimit"><mode>list</mode><limit>4</limit></action>
  126.                             <action method="addPagerLimit"><mode>list</mode><limit>6</limit></action>
  127.                             <action method="addPagerLimit"><mode>list</mode><limit>8</limit></action>
  128.                             <action method="addPagerLimit" translate="label"><mode>list</mode><limit>all</limit><label>All</label></action>
  129.                             <action method="addPagerLimit"><mode>grid</mode><limit>3</limit></action>
  130.                             <action method="addPagerLimit"><mode>grid</mode><limit>6</limit></action>
  131.                             <action method="addPagerLimit"><mode>grid</mode><limit>9</limit></action>
  132.                             <action method="addPagerLimit" translate="label"><mode>grid</mode><limit>all</limit><label>All</label></action>
  133.                         -->
  134.                     </block>
  135.                     <action method="addColumnCountLayoutDepend"><layout>empty</layout><count>6</count></action>
  136.                     <action method="addColumnCountLayoutDepend"><layout>one_column</layout><count>5</count></action>
  137.                     <action method="addColumnCountLayoutDepend"><layout>two_columns_left</layout><count>4</count></action>
  138.                     <action method="addColumnCountLayoutDepend"><layout>two_columns_right</layout><count>4</count></action>
  139.                     <action method="addColumnCountLayoutDepend"><layout>three_columns</layout><count>3</count></action>
  140.                     <action method="setToolbarBlockName"><name>product_list_toolbar</name></action>
  141.                 </block>
  142.             </block>
  143.         </reference>
  144.     </catalog_category_layered>
  145.  
  146. <!--
  147. Compare products page
  148. -->
  149.  
  150.     <catalog_product_compare_index translate="label">
  151.         <label>Catalog Product Compare List</label>
  152.         <!-- Mage_Catalog -->
  153.         <reference name="root">
  154.             <action method="setTemplate"><template>page/popup.phtml</template></action>
  155.         </reference>
  156.         <reference name="head">
  157.             <action method="addJs"><script>scriptaculous/scriptaculous.js</script></action>
  158.             <action method="addJs"><script>varien/product.js</script></action>
  159.         </reference>
  160.         <reference name="content">
  161.             <block type="catalog/product_compare_list" name="catalog.compare.list" template="catalog/product/compare/list.phtml"/>
  162.         </reference>
  163.     </catalog_product_compare_index>
  164.  
  165.     <customer_account_index>
  166.         <reference name="right">
  167.             <action method="unsetChild"><name>catalog.compare.sidebar</name></action>
  168.         </reference>
  169.     </customer_account_index>
  170.  
  171. <!--
  172. Product view
  173. -->
  174.  
  175.     <catalog_product_view translate="label">
  176.         <label>Catalog Product View (Any)</label>
  177.         <!-- Mage_Catalog -->
  178.         <reference name="root">
  179.             <action method="setTemplate"><template>page/2columns-right.phtml</template></action>
  180.         </reference>
  181.         <reference name="head">
  182.             <action method="addJs"><script>varien/product.js</script></action>
  183.             <action method="addJs"><script>varien/configurable.js</script></action>
  184.  
  185.             <action method="addItem"><type>js_css</type><name>calendar/calendar-win2k-1.css</name><params/><!--<if/><condition>can_load_calendar_js</condition>--></action>
  186.             <action method="addItem"><type>js</type><name>calendar/calendar.js</name><!--<params/><if/><condition>can_load_calendar_js</condition>--></action>
  187.             <action method="addItem"><type>js</type><name>calendar/calendar-setup.js</name><!--<params/><if/><condition>can_load_calendar_js</condition>--></action>
  188.         </reference>
  189.         <reference name="content">
  190.             <block type="catalog/product_view" name="product.info" template="catalog/product/view.phtml">
  191.                 <!--
  192.                 <action method="addReviewSummaryTemplate"><type>default</type><template>review/helper/summary.phtml</template></action>
  193.                 <action method="addReviewSummaryTemplate"><type>short</type><template>review/helper/summary_short.phtml</template></action>
  194.                 <action method="addReviewSummaryTemplate"><type>...</type><template>...</template></action>
  195.                 -->
  196.                 <block type="catalog/product_view_media" name="product.info.media" as="media" template="catalog/product/view/media.phtml"/>
  197.                 <block type="core/text_list" name="alert.urls" as="alert_urls" translate="label">
  198.                     <label>Alert Urls</label>
  199.                 </block>
  200.  
  201.                 <action method="setTierPriceTemplate"><template>catalog/product/view/tierprices.phtml</template></action>
  202.  
  203.                 <block type="catalog/product_list_upsell" name="product.info.upsell" as="upsell_products" template="catalog/product/list/upsell.phtml">
  204.                     <action method="setColumnCount"><columns>4</columns></action>
  205.                     <action method="setItemLimit"><type>upsell</type><limit>4</limit></action>
  206.                 </block>
  207.  
  208.                 <block type="catalog/product_view_additional" name="product.info.additional" as="product_additional_data" />
  209.                 <block type="catalog/product_view_description" name="product.description" as="description" template="catalog/product/view/description.phtml">
  210.                     <action method="addToParentGroup"><group>detailed_info</group></action>
  211.                 </block>
  212.                 <block type="catalog/product_view_attributes" name="product.attributes" as="additional" template="catalog/product/view/attributes.phtml">
  213.                     <action method="addToParentGroup"><group>detailed_info</group></action>
  214.                 </block>
  215.                 <block type="catalog/product_view" name="product.info.addto" as="addto" template="catalog/product/view/addto.phtml"/>
  216.                 <block type="catalog/product_view" name="product.info.addtocart" as="addtocart" template="catalog/product/view/addtocart.phtml"/>
  217.  
  218.                 <block type="core/text_list" name="product.info.extrahint" as="extrahint" translate="label">
  219.                     <label>Product View Extra Hint</label>
  220.                 </block>
  221.  
  222.                 <block type="catalog/product_view" name="product.info.options.wrapper" as="product_options_wrapper" template="catalog/product/view/options/wrapper.phtml" translate="label">
  223.                     <label>Info Column Options Wrapper</label>
  224.                     <block type="core/template" name="options_js" template="catalog/product/view/options/js.phtml"/>
  225.                     <block type="catalog/product_view_options" name="product.info.options" as="product_options" template="catalog/product/view/options.phtml">
  226.                         <action method="addOptionRenderer"><type>text</type><block>catalog/product_view_options_type_text</block><template>catalog/product/view/options/type/text.phtml</template></action>
  227.                         <action method="addOptionRenderer"><type>file</type><block>catalog/product_view_options_type_file</block><template>catalog/product/view/options/type/file.phtml</template></action>
  228.                         <action method="addOptionRenderer"><type>select</type><block>catalog/product_view_options_type_select</block><template>catalog/product/view/options/type/select.phtml</template></action>
  229.                         <action method="addOptionRenderer"><type>date</type><block>catalog/product_view_options_type_date</block><template>catalog/product/view/options/type/date.phtml</template></action>
  230.                 </block>
  231.                         <block type="core/html_calendar" name="html_calendar" as="html_calendar" template="page/js/calendar.phtml"/>
  232.                     </block>
  233.                 <block type="catalog/product_view" name="product.info.options.wrapper.bottom" as="product_options_wrapper_bottom" template="catalog/product/view/options/wrapper/bottom.phtml" translate="label">
  234.                     <label>Bottom Block Options Wrapper</label>
  235.                     <action method="insert"><block>product.tierprices</block></action>
  236.                     <block type="catalog/product_view" name="product.clone_prices" as="prices" template="catalog/product/view/price_clone.phtml"/>
  237.                     <action method="append"><block>product.info.addtocart</block></action>
  238.                     <action method="append"><block>product.info.addto</block></action>
  239.                 </block>
  240.  
  241.                 <block type="core/template_facade" name="product.info.container1" as="container1">
  242.                     <action method="setDataByKey"><key>alias_in_layout</key><value>container1</value></action>
  243.                     <action method="setDataByKeyFromRegistry"><key>options_container</key><key_in_registry>product</key_in_registry></action>
  244.                     <action method="append"><block>product.info.options.wrapper</block></action>
  245.                     <action method="append"><block>product.info.options.wrapper.bottom</block></action>
  246.                 </block>
  247.                 <block type="core/template_facade" name="product.info.container2" as="container2">
  248.                     <action method="setDataByKey"><key>alias_in_layout</key><value>container2</value></action>
  249.                     <action method="setDataByKeyFromRegistry"><key>options_container</key><key_in_registry>product</key_in_registry></action>
  250.                     <action method="append"><block>product.info.options.wrapper</block></action>
  251.                     <action method="append"><block>product.info.options.wrapper.bottom</block></action>
  252.                 </block>
  253.                 <action method="unsetCallChild"><child>container1</child><call>ifEquals</call><if>0</if><key>alias_in_layout</key><key>options_container</key></action>
  254.                 <action method="unsetCallChild"><child>container2</child><call>ifEquals</call><if>0</if><key>alias_in_layout</key><key>options_container</key></action>
  255.             </block>
  256.         </reference>
  257.         <reference name="right">
  258.             <block type="catalog/product_list_related" name="catalog.product.related" before="-" template="catalog/product/list/related.phtml"/>
  259.         </reference>
  260.     </catalog_product_view>
  261.  
  262. <!--
  263. Additional block dependant on product type
  264. -->
  265.     <PRODUCT_TYPE_simple translate="label" module="catalog">
  266.         <label>Catalog Product View (Simple)</label>
  267.         <reference name="product.info">
  268.             <block type="catalog/product_view_type_simple" name="product.info.simple" as="product_type_data" template="catalog/product/view/type/default.phtml">
  269.                 <block type="core/text_list" name="product.info.simple.extra" as="product_type_data_extra" translate="label">
  270.                     <label>Product Extra Info</label>
  271.                 </block>
  272.             </block>
  273.         </reference>
  274.     </PRODUCT_TYPE_simple>
  275.     <PRODUCT_TYPE_configurable translate="label" module="catalog">
  276.         <label>Catalog Product View (Configurable)</label>
  277.         <reference name="product.info">
  278.             <block type="catalog/product_view_type_configurable" name="product.info.configurable" as="product_type_data" template="catalog/product/view/type/default.phtml">
  279.                 <block type="core/text_list" name="product.info.configurable.extra" as="product_type_data_extra" translate="label">
  280.                     <label>Product Extra Info</label>
  281.                 </block>
  282.             </block>
  283.         </reference>
  284.         <reference name="product.info.options.wrapper">
  285.             <block type="catalog/product_view_type_configurable" name="product.info.options.configurable" as="options_configurable" before="-" template="catalog/product/view/type/options/configurable.phtml"/>
  286.         </reference>
  287.     </PRODUCT_TYPE_configurable>
  288.     <PRODUCT_TYPE_grouped translate="label" module="catalog">
  289.         <label>Catalog Product View (Grouped)</label>
  290.         <reference name="product.info">
  291.             <block type="catalog/product_view_type_grouped" name="product.info.grouped" as="product_type_data" template="catalog/product/view/type/grouped.phtml">
  292.                 <block type="core/text_list" name="product.info.grouped.extra" as="product_type_data_extra" translate="label">
  293.                     <label>Product Extra Info</label>
  294.                 </block>
  295.             </block>
  296.         </reference>
  297.     </PRODUCT_TYPE_grouped>
  298.     <PRODUCT_TYPE_virtual translate="label" module="catalog">
  299.         <label>Catalog Product View (Virtual)</label>
  300.         <reference name="product.info">
  301.             <block type="catalog/product_view_type_virtual" name="product.info.virtual" as="product_type_data" template="catalog/product/view/type/default.phtml">
  302.                 <block type="core/text_list" name="product.info.virtual.extra" as="product_type_data_extra" translate="label">
  303.                     <label>Product Extra Info</label>
  304.                 </block>
  305.             </block>
  306.         </reference>
  307.     </PRODUCT_TYPE_virtual>
  308.  
  309.  
  310.  
  311. <!--
  312. Product send to friend
  313. -->
  314.  
  315.     <catalog_product_send translate="label">
  316.         <label>Catalog Product Email to a Friend</label>
  317.         <!-- Mage_Catalog -->
  318.         <reference name="root">
  319.             <action method="setTemplate"><template>page/2columns-right.phtml</template></action>
  320.         </reference>
  321.         <reference name="head">
  322.             <action method="addJs"><script>varien/product.js</script></action>
  323.         </reference>
  324.         <reference name="content">
  325.             <block type="catalog/product_send" name="product.send" template="catalog/product/send.phtml">
  326.             </block>
  327.         </reference>
  328.     </catalog_product_send>
  329.  
  330. <!--
  331. Product additional images gallery popup
  332. -->
  333.  
  334.     <catalog_product_gallery translate="label">
  335.         <label>Catalog Product Image Gallery Popup</label>
  336.         <!-- Mage_Catalog -->
  337.         <reference name="root">
  338.             <action method="setTemplate"><template>page/popup.phtml</template></action>
  339.         </reference>
  340.         <reference name="content">
  341.             <block type="catalog/product_gallery" name="catalog_product_gallery" template="catalog/product/gallery.phtml"/>
  342.         </reference>
  343.     </catalog_product_gallery>
  344.  
  345. <!--
  346. SEO Site Map
  347. -->
  348.  
  349.     <catalog_seo_sitemap translate="label">
  350.         <label>Catalog Seo Sitemap (Common)</label>
  351.         <remove name="right"/>
  352.         <remove name="left"/>
  353.  
  354.         <reference name="root">
  355.             <action method="setTemplate"><template>page/1column.phtml</template></action>
  356.         </reference>
  357.         <reference name="content">
  358.             <block type="page/template_container" name="seo.sitemap.container" template="catalog/seo/sitemap/container.phtml">
  359.                 <block type="page/template_links" name="seo.sitemap.links" as="links" template="page/template/links.phtml"/>
  360.                 <block type="page/html_pager" name="seo.sitemap.pager.top" as="pager_top" template="page/html/pager.phtml"/>
  361.                 <block type="page/html_pager" name="seo.sitemap.pager.bottom" as="pager_bottom" template="page/html/pager.phtml"/>
  362.             </block>
  363.         </reference>
  364.     </catalog_seo_sitemap>
  365.  
  366.     <catalog_seo_sitemap_category translate="label">
  367.         <label>Catalog Seo Sitemap (Category List)</label>
  368.         <reference name="head">
  369.             <action method="setTitle" translate="title" module="catalog"><title>Site Map</title></action>
  370.         </reference>
  371.         <update handle="catalog_seo_sitemap" />
  372.         <reference name="seo.sitemap.container">
  373.             <action method="setTitle" translate="title" module="catalog"><title>Categories</title></action>
  374.             <block type="catalog/seo_sitemap_category" name="seo.sitemap.sitemap" as="sitemap" after="pager_top" template="catalog/seo/sitemap.phtml">
  375.                 <action method="bindPager"><pager>seo.sitemap.pager.top</pager></action>
  376.                 <action method="bindPager"><pager>seo.sitemap.pager.bottom</pager></action>
  377.                 <action method="setItemsTitle" translate="title" module="catalog"><title>categories</title></action>
  378.             </block>
  379.         </reference>
  380.         <reference name="seo.sitemap.links">
  381.             <action method="addLink" translate="label title" module="catalog"><label>Products Sitemap</label><url helper="catalog/map/getProductUrl"/><title>Products Sitemap</title></action>
  382.         </reference>
  383.     </catalog_seo_sitemap_category>
  384.  
  385.     <catalog_seo_sitemap_category_tree translate="label">
  386.         <label>Catalog Seo Sitemap (Category Tree)</label>
  387.         <reference name="seo.sitemap.container">
  388.             <remove name="seo.sitemap.pager.top" />
  389.             <remove name="seo.sitemap.pager.bottom" />
  390.             <block type="catalog/seo_sitemap_tree_pager" name="seo.sitemap.tree.pager.top" as="pager_top" template="page/html/pager.phtml"/>
  391.             <block type="catalog/seo_sitemap_tree_pager" name="seo.sitemap.tree.pager.bottom" as="pager_bottom" template="page/html/pager.phtml"/>
  392.             <remove name="seo.sitemap.sitemap" />
  393.             <block type="catalog/seo_sitemap_tree_category" name="seo.sitemap.sitemap_tree" as="sitemap" after="pager_top" template="catalog/seo/tree.phtml">
  394.                 <action method="bindPager"><pager>seo.sitemap.tree.pager.top</pager></action>
  395.                 <action method="bindPager"><pager>seo.sitemap.tree.pager.bottom</pager></action>
  396.             </block>
  397.         </reference>
  398.     </catalog_seo_sitemap_category_tree>
  399.  
  400.     <catalog_seo_sitemap_product translate="label">
  401.         <label>Catalog Seo Sitemap (Product List)</label>
  402.         <reference name="head">
  403.             <action method="setTitle" translate="title" module="catalog"><title>Site Map</title></action>
  404.         </reference>
  405.         <update handle="catalog_seo_sitemap" />
  406.         <reference name="seo.sitemap.container">
  407.             <action method="setTitle" translate="title" module="catalog"><title>Products</title></action>
  408.             <block type="catalog/seo_sitemap_product" name="seo.sitemap.sitemap" as="sitemap" after="pager_top" template="catalog/seo/sitemap.phtml">
  409.                 <action method="bindPager"><pager>seo.sitemap.pager.top</pager></action>
  410.                 <action method="bindPager"><pager>seo.sitemap.pager.bottom</pager></action>
  411.                 <action method="setItemsTitle" translate="title" module="catalog"><title>products</title></action>
  412.             </block>
  413.         </reference>
  414.         <reference name="seo.sitemap.links">
  415.             <action method="addLink" translate="label title" module="catalog"><label>Categories Sitemap</label><url helper="catalog/map/getCategoryUrl"/><title>Categories Sitemap</title></action>
  416.         </reference>
  417.     </catalog_seo_sitemap_product>
  418. </layout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement