How to correctly add reference block in magento

umunmikee

New Member
I am wandering how to add a reference block in magento 1.7.0.2 correctly..what I have done so far is..\[code\]/public_html/zee/app/design/frontend/default/{mytheme}/layout/catalog.xmldefault> <!-- Mage_Catalog --> <reference name="root"> <action method="setTemplate"><template>page/2columns-left.phtml</template></action> </reference> <reference name="topmenu"> <block type="page/html_topmenu" name="catalog.topnav" template="page/html/topmenu.phtml"/> </reference>\[/code\]AND (NOTE THAT)/public_html/zee/app/design/frontend/default/tenniskarma/layout/page.xml\[code\] <block type="page/html_notices" name="global_notices" as="global_notices" template="page/html/notices.phtml" /> <block type="page/html_header" name="header" as="header"> <block type="page/template_links" name="top.links" as="accountLinks"/> <block type="page/switch" name="store_language" as="store_language" template="page/switch/languages.phtml"/> <block type="core/text_list" name="topmenu" as="topMenu" translate="label"> <label>Navigation Bar</label> <block type="page/html_topmenu" name="catalog.topnav" template="page/html/topmenu.phtml" /> </block> <block type="page/html_wrapper" name="top.container" as="topContainer" translate="label"> <label>Page Header</label> <action method="setElementClass"><value>top-container</value></action> </block> </block>\[/code\]what template hints shows
ZCQtB.png
still my menu does not show up..actually I upgraded magento from ver 1.5 to 1.7.0.2 and I fall in to issues..MAG CE 1.5 URL Mag CE 1.7 URLI am striking my head for last four days, but yet not succeeded...please help meWHAT I ACTUALLY DID[*]Installed Mag 1.7.0.2[*]added products (cart2cart)[*]copied my theme folder ( in design and skin) to the installation[*]started checking my site..and found that menu is missing[*]I searched over google, saw stackoverflow, magento community forum, blogs, and things were pointing that menu display functions have been changed after 1.7[*]instead of top.phtml, now menu comes from topmenu.phtml, so I added this file on specified path[*]page.xml and catalog.xml needs to be updated for this change, so I updated these two files ( what I did is given above in xml)[*]Yet My menu does not display at all..please Guide me...PS..I always thought, read and wished to hear about Allan Storm and thought that what the guy he is, and I am really lucky that he saw my question...Solute to you sir, for for being expert to the ends in Magento and sharing you knowledge so much..( sorry if I broke some rule of SO, but I want to pay my hearted regards and solute to Allan)
 
Back
Top