Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7496467
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T18:37:37+00:00 2026-05-29T18:37:37+00:00

Trying to get the home page to display a 4 column grid for the

  • 0

Trying to get the home page to display a 4 column grid for the display of items using a two_column_right template, in the local.xml file. Unfortunately it’s taking on the three column grid I’ve specified for catalog pages elsewhere :/

Possibly need to insert <update handle="four_column_grid" /> under a tag referencing the home page??

<?xml version="1.0" encoding="UTF-8"?>
<layout version="0.1.0">

<four_column_grid>
    <reference name="product_list">
        <action method="setColumnCount">
            <count>4</count>
        </action>
    </reference>
</four_column_grid>

<three_column_grid>
    <reference name="product_list">
        <action method="setColumnCount">
            <count>3</count>
        </action>
    </reference>
</three_column_grid>

 <default>

 <!-- Header -->
        <reference name="header">
             <action method="unsetChild"><name>welcome</name></action>
        </reference>


  <!-- Root -->
  <reference name="root">
   <action method="unsetChild"><name>breadcrumbs</name></action>
  </reference>

  <reference name="footer">         
   <!-- Remove all the other Magento links - "Site Map, Search Terms, Advanced Search, and Contact Us"  -->
   <!-- <action method="unsetChild"><name>footer_links</name></action> -->
  </reference>

 <!-- Right sidebar -->
  <reference name="right">
   <remove name="paypal.partner.right.logo"/>
  </reference>

   </default>


 <catalog_category_default>
     <update handle="three_column_grid" />
 </catalog_category_default>

 <catalog_category_layered>
     <update handle="three_column_grid" />
 </catalog_category_layered> 

</layout>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T18:37:40+00:00Added an answer on May 29, 2026 at 6:37 pm

    Short answer: you can’t set values on blocks “inside” of CMS blocks using layout XML.

    When loadLayout() is called in action controllers, the layout XML is processed, all blocks are instantiated, and the <action> nodes are executed. But the blocks are not yet rendered.
    When renderLayout() is called the blocks are rendered by calling their toHtml() method.

    If the block happens to be a cms/block (or cms/page) instance containing a {{block ...}} instance, that block will be instantiated at this time.

    At this moment during the request flow all layout XML <action> nodes already have been processed.
    In essence you are referencing a block instance in the layout XML that doesn’t yet exist.

    As a workaround, it might work for you to add the product list block to the homepage using layout XML, too. The downside is that you can’t place it freely in other content of the CMS block.

    <cms_index_index><!-- layout handle for the default homepage action -->
        <reference name="content">
            <block type="catalog/product_list" name="product_list">
                <action method="setTemplate">
                    <template>catalog/product/list.phtml</template>
                </action>
                <action method="setCategoryId">
                    <catId>51</catId>
                </action>
                <action method="setColumnCount">
                    <count>4</count>
                </action>
            </block>
        </reference>
    </cms_index_index>
    

    Of course you are not limited to the product list block. If you need to place the list inside of other content, you could add cms blocks to the homepage using layout XML ad well.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm new to template editing in wordpress and I'm trying to get a page
I am trying get all html links within a string and replace them using
I am trying get all html links within a string and replace them using
I am trying get Struts 2 and Tiles to work and I am using
Trying to get parameters from a PUT request using HttpServlet#doPut: public void doPut(HttpServletRequest request,
I am trying to display blogs on a certain page here is my code:
I'm trying to get a menu to slide in/out using jQuery UI and I
I've got a site with user profiles. On the home page I am trying
I'm trying to get the following code to display only on specific pages but
I am trying to get the index-page of a Wordpress-blog show some very specific

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.