Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

top.phtml getChildHtml(’topLeftLinks’)
 
Hadifarnoud
Sr. Member
 
Total Posts:  210
Joined:  2007-10-07
Guildford, Surrey, UK
 

<?php
/**
 * Magento
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Open Software License (OSL 3.0)
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://opensource.org/licenses/osl-3.0.php
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@magentocommerce.com so we can send you a copy immediately.
 *
 * @category   design_default
 * @package    Mage
 * @copyright  Copyright (c) 2004-2007 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
 * @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
 */
?>
<?
/**
 * Top menu for store
 *
 * @see Mage_Catalog_Block_Navigation
 */
?>
<!-- hand coded by hadi farnoud,top.phtml -->
<
div id="tabsJ" style=" background-attachment:scroll">
<
ul>
    <
li><a href="#" title="Link 1"><span>درباره Ù…ا</span></a></li>
    <
li><a href="#" title="Link 2"><span>محصولات</span></a></li>
    <
li><a href="#" title="Longer Link Text"><span>کلوب</span></a></li>
    <
li><a href="#" title="Link 3"><span>خدمات</span></a></li>

    <
li><a href="#" title="Longer Link Text"><span>اخبار</span></a></li>
    <
li><a href="#" title="Link 5"><span>نمایندگی‌ها</span></a></li>
    <
li><a href="#" title="Longer Link Text"><span>سئوالات Ù…تداول</span></a></li>
    <
li><a href="#" title="Link 6"><span>تماس Ø¨Ø§ Ù…ا</span></a></li>
    <!--<
li><a href="#" title="Link 7"><span>Link 7</span></a></li> -->
  </
ul>
</
div>
<
div class="header-nav-container">
    <
div class="header-nav">
        <
h4 class="no-show"><?=$this->__('Category Navigation:')?></h4>
        <
ul id="nav">
        
<?foreach ($this->getStoreCategories(10) as $_category):?>
            <?
=$this->drawItem($_category)?>
        <?endforeach?>
        
</ul>
    </
div>
    <
div class="header-nav-gray">
    
<?=$this->getChildHtml('topLeftLinks')?>
    
</div>
</
div>

in header-nav-gray <?=$this->getChildHtml('topLeftLinks')?> does not work, i dunno why

 
Magento Community Magento Community
Magento Community
Magento Community
 
Hadifarnoud
Sr. Member
 
Total Posts:  210
Joined:  2007-10-07
Guildford, Surrey, UK
 

<?xml version="1.0"?>
<!--
/**
* Magento
.com so we can send you a copy immediately.
*
* @category design_default
* @package Mage
* @copyright Copyright (c) 2004-2007 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/

Supported layout update handles (action):
- wishlist_index_index
- paypal_express_review
- checkout_cart_index
- catalog_product_gallery
- catalog_product_compare_index
- tag_list_index
- tag_customer_index
- tag_customer_view
- tag_customer_edit
- review_product_list
- review_product_view
- review_customer_index
- sales_order_history
- sales_order_view
- sales_order_details
- sales_order_print
- customer_account_index
- customer_address_index
- customer_address_view
- customer_account_login
- customer_account_logoutSuccess
- customer_account_create
- customer_account_forgotPassword
- customer_account_edit
- customer_review_index
- customer_review_view
- newsletter_manage_index
- checkout_multishipping_login
- checkout_multishipping_register
- checkout_multishipping_addresses
- checkout_multishipping_shipping
- checkout_multishipping_billing
- checkout_multishipping_overview
- checkout_multishipping_success
- checkout_onepage_index
- checkout_onepage_progress
- checkout_onepage_shippingMethod
- checkout_onepage_review
- checkout_onepage_success
- catalogsearch_advanced_form
- catalogsearch_advanced_result
- catalogsearch_result_index

Supported layout update handles (special):
- default
- noRoute
- print
- install_wizard
- customer_logged_in
- customer_logged_out
- customer_account
- customer_address
- catalog_category_default
- catalog_category_layered
- catalog_product_view
- checkout_multishipping
- paypal_express_review_details

-->
<layout>

<!--
Default layout, loads most of the pages
-->

<default>
<!-- Mage_Core -->
<block type="page/html" name="root" output="toHtml">
<action method="setTemplate"><template>page/3columns.phtml</template></action>

<block type="core/store" name="store" as="store"/>

<block type="page/html_head" name="head" as="head">
<action method="addJs"><script>prototype/prototype.js</script></action>
<action method="addJs"><script>prototype/validation.js</script></action>
<action method="addJs"><script>scriptaculous/scriptaculous.js</script></action>
<action method="addJs"><script>mage/translate.js</script></action>
<block type="page/js_translate" name="js_translate" as="js_translate">
<action method="setTemplate"><template>page/js/translate.phtml</template></action>
</block>
</block>

<block type="page/html_header" name="header" as="header">
<block type="page/html_toplinks" name="top.left.links" as="topLeftLinks"/>
<block type="page/html_toplinks" name="top.right.links" as="topRightLinks"/>
<block type="core/template" name="top.search" as="topSearch">
<action method="setTemplate"><template>catalogsearch/form.mini.phtml</template></action>
</block>
<block type="core/text_list" name="top.menu" as="topMenu"/>

</block>

<block type="page/html_breadcrumbs" name="breadcrumbs" as="breadcrumbs"/>

<block type="core/text_list" name="left" as="left"/>

<block type="core/messages" name="global_messages" as="global_messages"/>
<block type="core/messages" name="messages" as="messages"/>

<block type="core/text_list" name="content" as="content"/>

<block type="core/text_list" name="right" as="right">
<block type="wishlist/customer_sidebar" name="wishlist.sidebar">
<action method="setTemplate"><template>wishlist/sidebar.phtml</template></action>
</block>
</block>

<block type="page/html_footer" name="footer" as="footer">
<action method="setTemplate"><template>page/html/footer.phtml</template></action>
<block type="core/store_switcher" name="store_switcher">
<action method="setTemplate"><template>core/stores.phtml</template></action>
</block>
<block type="cms/block" name="footer_links">
<action method="setBlockId"><block_id>footer_links</block_id></action>
</block>
</block>

<block type="core/text_list" name="before_body_end" as="before_body_end"/>
</block>

<block type="core/profiler" output="toHtml"/>

<!-- Mage_Catalog -->
<reference name="top.menu">
<block type="catalog/navigation" name="catalog.topnav">
<action method="setTemplate"><template>catalog/navigation/top.phtml</template></action>
</block>
</reference>
<reference name="left">
<block type="core/template" name="left.permanent.callout">
<action method="setTemplate"><template>callouts/left_col.phtml</template></action>
</block>
</reference>
<reference name="right">
<block type="catalog/product_compare_sidebar" name="catalog.compare.sidebar" >
<action method="setTemplate"><template>catalog/product/compare/sidebar.phtml</template></action>
</block>
<block type="core/template" name="righ

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top