title: Magento:Custom dropdown cart - How to get "my cart" link?
body: <p>I am working on a dropdown cart based on Magento's sidebar cart feature. Thanks to a tutorial I got this working when editing the checkout.xml and page.xml files, however I want to do it the real Magento way by just editing my local.xml file. Here's my code:</p>
  
  <p>header.phtml</p>
  
  <pre><code>div class="top-cart"&gt;
  &lt;?php echo $this-&gt;getChildHtml('topCart') ?&gt;
  &lt;div class="top-cart-menu"&gt;
  &lt;?php echo $this-&gt;getChildHtml('topCartBlock') ?&gt;
  &lt;/div&gt;
  &lt;/div&gt; 
  </code></pre>
  
  <p>local.xml</p>
  
  <pre><code>  &lt;block type="checkout/cart_sidebar" name="cart_sidebar" as="topCartBlock" template="checkout/cart/sidebar.phtml" before="-" &gt;
      &lt;action method="addItemRender"&gt;
        &lt;type&gt;simple&lt;/type&gt;
        &lt;block&gt;checkout/cart_item_renderer&lt;/block&gt;
        &lt;template&gt;checkout/cart/sidebar/default.phtml&lt;/template&gt;
      &lt;/action&gt;
     &lt;block type="core/text_list" name="cart_sidebar.extra_actions" as="extra_actions" translate="label" module="checkout"&gt;
        &lt;label&gt;Shopping Cart Sidebar Extra Actions&lt;/label&gt;
      &lt;/block&gt;
    &lt;/block&gt;
  </code></pre>
  
  <p>Up to this point it's working, I get the sidebar mini cart display in my header. But in order to implement the mouseover I need the cart link. When I put the above code with the following code in page.xml it's working, but not when I add it in my local.xml the link is not being displayed.</p>
  
  <pre><code>&lt;reference name="top.cart"&gt;
    &lt;action method="addLink" translate="label title"&gt;
      &lt;label&gt;Your Cart&lt;/label&gt;
      &lt;url&gt;checkout/cart&lt;/url&gt;
      &lt;title&gt;Your cart&lt;/title&gt;
      &lt;position&gt;1&lt;/position&gt;
      &lt;li/&gt;
      &lt;a&gt;id="top-link-cart"&lt;/a&gt;
    &lt;/action&gt;
  &lt;/reference&gt;
  </code></pre>
  
  <p>How do I have to modify this code in order to  get the "My Cart" link?</p>