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

re: Designer’s Guide to Magento
 
sticky
Sr. Member
 
Avatar
Total Posts:  76
Joined:  2007-09-05
UK
 

First of all thanks for this, it’s a great read and after 2 or 3 times it’s making a bit more sense.

I do have one problem with Exercise #1 though, I doesn’t seem to quite sync up with my install (ver. 0.6.14100)

3. Now open page.xml and search for ‘as="right"’.

Mine has one for the left

<block type="core/text_list" name="left" as="left"/>
but no right…

So I moved onto the next steps anyhow…

And vola, there it is! Now to move this block from the right to the left column, change the <reference> tag from <reference name="right"<, to <reference name="left">. Save the layout files and reload the category page.

I can’t seem to see any difference on my category pages at all when I do this. Which pages exactly should this be affecting?

It’s probably right under my nose… wink

 
Magento Community Magento Community
Magento Community
Magento Community
 
sticky
Sr. Member
 
Avatar
Total Posts:  76
Joined:  2007-09-05
UK
 

Thanks for your swift reply smile

3. Now open page.xml and search for ‘as="right"’.

This is my page.xml with no as="right”

<layout version="0.1.0">
<!--
Default 
layoutloads most of the pages
-->

    <default>
        <
block type="page/html" name="root" output="toHtml" template="page/3columns.phtml">
            <
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>
            </
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/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="page/html_footer" name="footer" as="footer" template="page/html/footer.phtml">
                <
block type="core/store_switcher" name="store_switcher" template="core/stores.phtml"/>
                
            </
block>

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

    <print>
        <!-- 
Mage_Page -->
        <
block type="page/html" name="root" output="toHtml" template="page/print.phtml">

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

            <
block type="page/html_head" name="head" as="head"/>

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

        </
block>
    </print>
</
layout>
ohminu - 20 December 2007 07:51 AM

… the two layout files you’re modifying are ‘page.xml’ and ‘catalog.xml’.

Hmm, in the guide it says ‘page.xml’ and ‘checkout.xml’

 
Magento Community Magento Community
Magento Community
Magento Community
 
redegifts
Member
 
Total Posts:  41
Joined:  2007-12-04
 

same is happening to me.  can’t get scenario #1 to work properly.

the mini-cart stays in the right column after following your instructions to the letter. 

My question is the statement you made in the scenario #1 - “If you did it correctly, you will find the names ‘right’ and ‘left’ assigned by the methods.”

If we did what exactly, open the correct file.  or were we supposed to create a new skelton file?

Thank you,
Russ

 
Magento Community Magento Community
Magento Community
Magento Community
 
sticky
Sr. Member
 
Avatar
Total Posts:  76
Joined:  2007-09-05
UK
 
ohminu - 20 December 2007 08:50 AM

....(is this the layout from app/design/frontend/default/default/?)

Yes, “app/design/frontend/default/default/layout

 
Magento Community Magento Community
Magento Community
Magento Community
 
redegifts
Member
 
Total Posts:  41
Joined:  2007-12-04
 

Here is my checkout.xml

<default>

<!-- Mage_Checkout -->
<reference name="top.right.links">
<block type="checkout/links" name="checkout_cart_link">
<action method="addCartLink"></action>
</block>

<block type="checkout/links" name="checkout_link">
<action method="addCheckoutLink"></action>
</block>
</reference>
<reference name="left">
<block type="checkout/cart_sidebar" name="cart_sidebar" before="-" template="checkout/cart/sidebar.phtml"/>
</reference>

</default>

the cart is set as the LEFT, but cart module doesn’t move.  any help would be appreciated.

 
Magento Community Magento Community
Magento Community
Magento Community
 
ChainsAddiction
Jr. Member
 
Total Posts:  1
Joined:  2007-12-13
 

I’m having the same problem with example 1.

I was finally able to move the cart module by modifying line 167 in main.xml.

So is that overriding the checkout.xml?  Confusing.

 
Magento Community Magento Community
Magento Community
Magento Community
 
sticky
Sr. Member
 
Avatar
Total Posts:  76
Joined:  2007-09-05
UK
 

Maybe this exercise needs tweaking in the new year then…

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