FeedForAll Forum Index  
 Home  •  FAQ  •   Search   •  Register   •  Profile   •  Log in
Search found 1 match
Author Message
Topic: Adding xml code manually

Replies: 4
Views: 4877

PostForum: Program Support (FFA Win)   Posted: Mon Apr 04, 2016 11:22 pm   Subject: syntax of xml code to add widget in magento sidebar
I wonder if I can get a sample XML syntax for adding a block or widget in the sidebar.
<!-- Mage_Catalog -->
<reference name="left">
<block type="core/template" name="left.permanent.callout" template="callouts/left_col.phtml">
<action method="setImgSrc"><src>images/sale-sidebar-left.jpg</src></action>
<action method="setImgAlt" translate="alt" module="catalog"><alt>Our 24/7. Call us at.</alt></action>
<action method="setLinkUrl"><url>w.html</url></action>
<reference name="right">
<block type="catalog/product_compare_sidebar" before="cart_sidebar" name="catalog.compare.sidebar" template="catalog/product/compare/sidebar.phtml"/>
<block type="core/template" name="right.permanent.callout" template="callouts/right_col.phtml">
<action method="setImgSrc"><src>images/promote-sidebar-right.jpg</src></action>
<action method="setImgAlt" translate="alt" module="catalog"><alt>Keep your eyes open!</alt></action>
<action method="setLinkUrl"><url>blog</url></action>

 Jump to:   

Powered by phpBB © 2001, 2002 phpBB Group :: FI Theme