Magento - How to put Mageworx downloads block in Template master - Easy tabs, custom tab -


i have installed mageworx downloads extension , template master - easy tabs extension. possible configure via admin, downloads information goes on product view page, not possible tell place in 'easy tabs' custom tab.

i have found need make edits, i'm not sure of right syntax:

downloads.xml:

<?xml version="1.0"?> <layout version="0.1.0">     <default>         <reference name="head">             <action method="addjs" ifconfig="mageworx_cms/downloads/enabled"><script>mageworx/downloads.js</script></action>             <action method="addcss" ifconfig="mageworx_cms/downloads/enabled"><stylesheet>css/mageworx/downloads.css</stylesheet></action>         </reference>         <reference name="after_body_start">             <block type="core/template" template="downloads/init_popup.phtml" name="init_video_popup" />         </reference>         <reference name="before_body_end">             <block type="core/template" template="downloads/video_popup.phtml" name="video_popup" />         </reference>     </default>      <catalog_product_view>         <reference name="product.info">             <block type="downloads/product" name="downloads.product" />         </reference>     </catalog_product_view>      <!--catalog_category_layered>         <reference name="product_list">             <action ifconfig="mageworx_cms/downloads/enable_files_on_category_pages" method="settemplate"><template>downloads/catalog-product-list.phtml</template></action>         </reference>     </catalog_category_layered>      <catalog_category_default>         <reference name="product_list">             <action ifconfig="mageworx_cms/downloads/enable_files_on_category_pages" method="settemplate"><template>downloads/catalog-product-list.phtml</template></action>         </reference>     </catalog_category_default>      <catalogsearch_result_index>         <reference name="search_result_list">             <action ifconfig="mageworx_cms/downloads/enable_files_on_category_pages" method="settemplate"><template>downloads/catalog-product-list.phtml</template></action>         </reference>     </catalogsearch_result_index>      <catalogsearch_advanced_result>         <reference name="search_result_list">             <action ifconfig="mageworx_cms/downloads/enable_files_on_category_pages" method="settemplate"><template>downloads/catalog-product-list.phtml</template></action>         </reference>     </catalogsearch_advanced_result--> </layout> 

tm_easytabs.xml:

<?xml version="1.0"?> <config>     <modules>         <tm_easytabs>             <active>true</active>             <codepool>community</codepool>             <tm_link><![cdata[http://templates-master.com/magento-extensions/magento-easy-tabs.html]]></tm_link>             <depends>                 <mage_catalog />             </depends>             <!-- add custom tab downloads -->             <action method="addtab" translate="title" module="catalog">                 <alias>downloads</alias>                 <title>downloads test</title>                 <block>downloads/product</block>                 <template>downloads/block_file_links.phtml</template>             </action>          </tm_easytabs>        </modules> </config> 

as can see i've made attempt @ putting correct syntax in i'm getting wrong because tabs disappear product page when uncomment it.

edit:

turns out editing wrong xml file, 1 needed edit easytabs.xml in layout folder.

i've managed add tab downloads inside, because can't disable addition of downloads in admin, 2 downloads tabs, 1 custom 1 , 1 downloads extension supposed add in, didn't reason.

easytabs.xml:

<?xml version="1.0" encoding="utf-8"?> <layout version="0.1.0">     <default>         <reference name="head">             <action method="additem" ifconfig="easy_tabs/general/enabled"><type>skin_css</type><name>css/easytabs.css</name></action>         </reference>     </default>      <catalog_product_view>         <reference name="product.info">             <action method="unsetchild" ifconfig="easy_tabs/general/descriptiontabbed"><name>description</name></action>             <action method="unsetchild" ifconfig="easy_tabs/general/additionaltabbed"><name>additional</name></action>             <action method="unsetchild" ifconfig="easy_tabs/general/upsellproductstabbed"><name>upsell_products</name></action>         </reference>         <reference name="right">             <action method="unsetchild" ifconfig="easy_tabs/general/relatedtabbed"><name>catalog.product.related</name></action>         </reference>         <reference name="product.info.additional">             <action method="unsetchild" ifconfig="easy_tabs/general/tagstabbed"><name>product_tag_list</name></action>             <block type="catalog/product_view_tabs" name="product.info.tabs" as="info_tabs">                 <action method="settemplate" ifconfig="easy_tabs/general/enabled"><template>easytabs/tabs.phtml</template></action>                 <action method="addtab" translate="title" module="catalog" ifconfig="easy_tabs/general/descriptiontabbed"><alias>description_tabbed</alias><title>description</title><block>catalog/product_view_description</block><template>easytabs/description.phtml</template></action>                 <action method="addtab" translate="title" module="catalog" ifconfig="easy_tabs/general/additionaltabbed"><alias>additional_tabbed</alias><title>specification</title><block>catalog/product_view_attributes</block><template>easytabs/attributes.phtml</template></action>                 <action method="addtab" translate="title" module="catalog" ifconfig="easy_tabs/general/upsellproductstabbed"><alias>upsell_products_tabbed</alias><title>we recommend</title><block>catalog/product_list_upsell</block><template>catalog/product/list/upsell.phtml</template></action>                 <action method="addtab" translate="title" module="catalog" ifconfig="easy_tabs/general/relatedtabbed"><alias>related_tabbed</alias><title>related products</title><block>catalog/product_list_related</block><template>easytabs/catalogproductrelated.phtml</template></action>                 <action method="addtab" translate="title" module="tag"     ifconfig="easy_tabs/general/tagstabbed"><alias>tags_tabbed</alias><title>product tags</title><block>tag/product_list</block><template>easytabs/catalogproducttags.phtml</template></action>                 <action method="addtab" translate="title" module="review"  ifconfig="easy_tabs/general/reviewtabbed"><alias>review_tabbed</alias><title>reviews</title><block>review/product_view_list</block><template>easytabs/catalogproductreview.phtml</template></action>                 <action method="addtab" translate="title" module="catalog" ifconfig="easy_tabs/custom/customtab"><alias>custom</alias><title>custom tab</title><block>catalog/product_view</block><template>downloads/block_file_links.phtml</template></action>                 <action method="addtab" translate="title" module="catalog" ifconfig="easy_tabs/custom/customtab1"><alias>custom1</alias><title>custom tab</title><block>catalog/product_view</block><template>easytabs/catalogproductcustom1.phtml</template></action>                 <action method="addtab" translate="title" module="catalog" ifconfig="easy_tabs/custom/customtab2"><alias>custom2</alias><title>custom tab</title><block>catalog/product_view</block><template>easytabs/catalogproductcustom2.phtml</template></action>                 <action method="addtab" translate="title" module="catalog" ifconfig="easy_tabs/custom/customtab3"><alias>custom3</alias><title>custom tab</title><block>catalog/product_view</block><template>easytabs/catalogproductcustom3.phtml</template></action>                 <action method="addtab" translate="title" module="catalog" ifconfig="easy_tabs/custom/customtab4"><alias>custom4</alias><title>custom tab</title><block>catalog/product_view</block><template>easytabs/catalogproductcustom4.phtml</template></action>                 <action method="addtab" translate="title" module="catalog" ifconfig="easy_tabs/customcms/tabcms"><alias>cms</alias><title>cms tab</title><block>core/template</block><template>easytabs/catalogproductcms.phtml</template></action>                 <action method="addtab" translate="title" module="catalog" ifconfig="easy_tabs/customcms/tabcms1"><alias>cms1</alias><title>cms tab</title><block>core/template</block><template>easytabs/catalogproductcms1.phtml</template></action>                 <action method="addtab" translate="title" module="catalog" ifconfig="easy_tabs/customcms/tabcms2"><alias>cms2</alias><title>cms tab</title><block>core/template</block><template>easytabs/catalogproductcms2.phtml</template></action>                 <action method="addtab" translate="title" module="catalog" ifconfig="easy_tabs/customcms/tabcms3"><alias>cms3</alias><title>cms tab</title><block>core/template</block><template>easytabs/catalogproductcms3.phtml</template></action>                 <action method="addtab" translate="title" module="catalog" ifconfig="easy_tabs/customcms/tabcms4"><alias>cms4</alias><title>cms tab</title><block>core/template</block><template>easytabs/catalogproductcms4.phtml</template></action>                 <action method="addtab" translate="title" module="downloads">                     <alias>downloads_test</alias>                     <title>downloads test</title>                     <block>downloads/product</block>                     <template>downloads/block_file_links.phtml</template>                 </action>             </block>         </reference>     </catalog_product_view> </layout> 

i need remove tab, removing reference, removes both of them...

solved:

added after addtab action , removed tab:

<action method="unsetchild"><name>downloads_test</name></action> 

layout/easytabs.xml:

<?xml version="1.0" encoding="utf-8"?> <layout version="0.1.0">     <default>         <reference name="head">             <action method="additem" ifconfig="easy_tabs/general/enabled"><type>skin_css</type><name>css/easytabs.css</name></action>         </reference>     </default>      <catalog_product_view>         <reference name="product.info">             <action method="unsetchild" ifconfig="easy_tabs/general/descriptiontabbed"><name>description</name></action>             <action method="unsetchild" ifconfig="easy_tabs/general/additionaltabbed"><name>additional</name></action>             <action method="unsetchild" ifconfig="easy_tabs/general/upsellproductstabbed"><name>upsell_products</name></action>         </reference>         <reference name="right">             <action method="unsetchild" ifconfig="easy_tabs/general/relatedtabbed"><name>catalog.product.related</name></action>         </reference>         <reference name="product.info.additional">             <action method="unsetchild" ifconfig="easy_tabs/general/tagstabbed"><name>product_tag_list</name></action>             <block type="catalog/product_view_tabs" name="product.info.tabs" as="info_tabs">                 <action method="settemplate" ifconfig="easy_tabs/general/enabled"><template>easytabs/tabs.phtml</template></action>                 <action method="addtab" translate="title" module="catalog" ifconfig="easy_tabs/general/descriptiontabbed"><alias>description_tabbed</alias><title>description</title><block>catalog/product_view_description</block><template>easytabs/description.phtml</template></action>                 <action method="addtab" translate="title" module="catalog" ifconfig="easy_tabs/general/additionaltabbed"><alias>additional_tabbed</alias><title>specification</title><block>catalog/product_view_attributes</block><template>easytabs/attributes.phtml</template></action>                 <action method="addtab" translate="title" module="catalog" ifconfig="easy_tabs/general/upsellproductstabbed"><alias>upsell_products_tabbed</alias><title>we recommend</title><block>catalog/product_list_upsell</block><template>catalog/product/list/upsell.phtml</template></action>                 <action method="addtab" translate="title" module="catalog" ifconfig="easy_tabs/general/relatedtabbed"><alias>related_tabbed</alias><title>related products</title><block>catalog/product_list_related</block><template>easytabs/catalogproductrelated.phtml</template></action>                 <action method="addtab" translate="title" module="tag"     ifconfig="easy_tabs/general/tagstabbed"><alias>tags_tabbed</alias><title>product tags</title><block>tag/product_list</block><template>easytabs/catalogproducttags.phtml</template></action>                 <action method="addtab" translate="title" module="review"  ifconfig="easy_tabs/general/reviewtabbed"><alias>review_tabbed</alias><title>reviews</title><block>review/product_view_list</block><template>easytabs/catalogproductreview.phtml</template></action>                 <action method="addtab" translate="title" module="catalog" ifconfig="easy_tabs/custom/customtab"><alias>custom</alias><title>custom tab</title><block>catalog/product_view</block><template>downloads/block_file_links.phtml</template></action>                 <action method="addtab" translate="title" module="catalog" ifconfig="easy_tabs/custom/customtab1"><alias>custom1</alias><title>custom tab</title><block>catalog/product_view</block><template>easytabs/catalogproductcustom1.phtml</template></action>                 <action method="addtab" translate="title" module="catalog" ifconfig="easy_tabs/custom/customtab2"><alias>custom2</alias><title>custom tab</title><block>catalog/product_view</block><template>easytabs/catalogproductcustom2.phtml</template></action>                 <action method="addtab" translate="title" module="catalog" ifconfig="easy_tabs/custom/customtab3"><alias>custom3</alias><title>custom tab</title><block>catalog/product_view</block><template>easytabs/catalogproductcustom3.phtml</template></action>                 <action method="addtab" translate="title" module="catalog" ifconfig="easy_tabs/custom/customtab4"><alias>custom4</alias><title>custom tab</title><block>catalog/product_view</block><template>easytabs/catalogproductcustom4.phtml</template></action>                 <action method="addtab" translate="title" module="catalog" ifconfig="easy_tabs/customcms/tabcms"><alias>cms</alias><title>cms tab</title><block>core/template</block><template>easytabs/catalogproductcms.phtml</template></action>                 <action method="addtab" translate="title" module="catalog" ifconfig="easy_tabs/customcms/tabcms1"><alias>cms1</alias><title>cms tab</title><block>core/template</block><template>easytabs/catalogproductcms1.phtml</template></action>                 <action method="addtab" translate="title" module="catalog" ifconfig="easy_tabs/customcms/tabcms2"><alias>cms2</alias><title>cms tab</title><block>core/template</block><template>easytabs/catalogproductcms2.phtml</template></action>                 <action method="addtab" translate="title" module="catalog" ifconfig="easy_tabs/customcms/tabcms3"><alias>cms3</alias><title>cms tab</title><block>core/template</block><template>easytabs/catalogproductcms3.phtml</template></action>                 <action method="addtab" translate="title" module="catalog" ifconfig="easy_tabs/customcms/tabcms4"><alias>cms4</alias><title>cms tab</title><block>core/template</block><template>easytabs/catalogproductcms4.phtml</template></action>                 <action method="addtab" translate="title" module="downloads">                     <alias>downloads_test</alias>                     <title>downloads test</title>                     <block>downloads/product</block>                     <template>downloads/block_file_links.phtml</template>                 </action>                 <action method="unsetchild"><name>downloads_test</name></action>             </block>         </reference>     </catalog_product_view> </layout> 

Comments