Magento Forum

   
Moving top.links to right sidebar
 
Webtailor Mallorca
Jr. Member
 
Total Posts:  28
Joined:  2008-04-02
Hasselt/Palma de Mallorca
 

I am currently trying to move the top.links to the right sidebar.
have read all the possible forum post and screencast and tutorials, but at the end its not working.
I made a copy of the default theme and renamed it in both app and skin folders.
So far its working ok but not for this particular section.

I added

<reference name="right">
<
block type="page/template_links" name="top.links" as="topLinks" template="page/html/top.links.phtml" before="-">
                        </
block>

So it becomes

<reference name="right">
<
block type="page/template_links" name="top.links" as="topLinks" template="page/html/top.links.phtml" before="-">
</
block>
<
block type="checkout/cart_sidebar" name="cart_sidebar" template="checkout/cart/sidebar.phtml" before="-">
                <
action method="addItemRender"><type>simple</type><block>checkout/cart_item_renderer</block><template>checkout/cart/sidebar/default.phtml</template></action>
                <
action method="addItemRender"><type>grouped</type><block>checkout/cart_item_renderer_grouped</block><template>checkout/cart/sidebar/default.phtml</template></action>
                <
action method="addItemRender"><type>configurable</type><block>checkout/cart_item_renderer_configurable</block><template>checkout/cart/sidebar/default.phtml</template></action>
            </
block>
        </
reference>

to checkout.xml in my new theme (based on default theme)
My latest try resulted in a error which says:

NoticeUndefined variabletoplinks  in /var/www/vhosts/jamrozik-cardesign.nl/httpdocs/app/design/frontend/default/jamrozik/template/page/html/top.links.phtml on line 27

#0 /var/www/vhosts/jamrozik-cardesign.nl/httpdocs/app/design/frontend/default/jamrozik/template/page/html/top.links.phtml(27): mageCoreErrorHandler(8, 'Undefined varia...', '/var/www/vhosts...', 27, Array)
#1 /var/www/vhosts/jamrozik-cardesign.nl/httpdocs/app/code/core/Mage/Core/Block/Template.php(144): include('/var/www/vhosts...')
#2 /var/www/vhosts/jamrozik-cardesign.nl/httpdocs/app/code/core/Mage/Core/Block/Template.php(176): Mage_Core_Block_Template->fetchView('frontend/defaul...')
#3 /var/www/vhosts/jamrozik-cardesign.nl/httpdocs/app/code/core/Mage/Core/Block/Template.php(193): Mage_Core_Block_Template->renderView()
#4 /var/www/vhosts/jamrozik-cardesign.nl/httpdocs/app/code/core/Mage/Core/Block/Abstract.php(643): Mage_Core_Block_Template->_toHtml()
#5 /var/www/vhosts/jamrozik-cardesign.nl/httpdocs/app/code/core/Mage/Core/Block/Text/List.php(43): Mage_Core_Block_Abstract->toHtml()
#6 /var/www/vhosts/jamrozik-cardesign.nl/httpdocs/app/code/core/Mage/Core/Block/Abstract.php(643): Mage_Core_Block_Text_List->_toHtml()
#7 /var/www/vhosts/jamrozik-cardesign.nl/httpdocs/app/code/core/Mage/Core/Block/Abstract.php(503): Mage_Core_Block_Abstract->toHtml()
#8 /var/www/vhosts/jamrozik-cardesign.nl/httpdocs/app/code/core/Mage/Core/Block/Abstract.php(454): Mage_Core_Block_Abstract->_getChildHtml('right', true)
#9 /var/www/vhosts/jamrozik-cardesign.nl/httpdocs/app/design/frontend/default/jamrozik/template/page/3columns.phtml(70): Mage_Core_Block_Abstract->getChildHtml('right')
#10 /var/www/vhosts/jamrozik-cardesign.nl/httpdocs/app/code/core/Mage/Core/Block/Template.php(144): include('/var/www/vhosts...')
#11 /var/www/vhosts/jamrozik-cardesign.nl/httpdocs/app/code/core/Mage/Core/Block/Template.php(176): Mage_Core_Block_Template->fetchView('frontend/defaul...')
#12 /var/www/vhosts/jamrozik-cardesign.nl/httpdocs/app/code/core/Mage/Core/Block/Template.php(193): Mage_Core_Block_Template->renderView()
#13 /var/www/vhosts/jamrozik-cardesign.nl/httpdocs/app/code/core/Mage/Core/Block/Abstract.php(643): Mage_Core_Block_Template->_toHtml()
#14 /var/www/vhosts/jamrozik-cardesign.nl/httpdocs/app/code/core/Mage/Core/Model/Layout.php(525): Mage_Core_Block_Abstract->toHtml()
#15 /var/www/vhosts/jamrozik-cardesign.nl/httpdocs/app/code/core/Mage/Core/Controller/Varien/Action.php(326): Mage_Core_Model_Layout->getOutput()
#16 /var/www/vhosts/jamrozik-cardesign.nl/httpdocs/app/code/core/Mage/Catalog/controllers/CategoryController.php(96): Mage_Core_Controller_Varien_Action->renderLayout()
#17 /var/www/vhosts/jamrozik-cardesign.nl/httpdocs/app/code/core/Mage/Core/Controller/Varien/Action.php(349): Mage_Catalog_CategoryController->viewAction()
#18 /var/www/vhosts/jamrozik-cardesign.nl/httpdocs/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(163): Mage_Core_Controller_Varien_Action->dispatch('view')
#19 /var/www/vhosts/jamrozik-cardesign.nl/httpdocs/app/code/core/Mage/Core/Controller/Varien/Front.php(174): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#20 /var/www/vhosts/jamrozik-cardesign.nl/httpdocs/app/Mage.php(447): Mage_Core_Controller_Varien_Front->dispatch()
#21 /var/www/vhosts/jamrozik-cardesign.nl/httpdocs/index.php(46): Mage::run()
#22 {main}

which is cosed by <?php if($toplinks && is_array($toplinks)): ?> in top.links.phtml

where is this variable defined?

can anybody point my in the right direction?

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