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

Custom Grid view in two columns
 
MrWilson1311
Jr. Member
 
Total Posts:  22
Joined:  2013-12-28
 

Hello Everyone, Havent had much luck asking for help on these forums but I\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\’ll give it another go wink

I have created a custom grid view and layout and i wish it to show up into 2 columns, Currently they all show one after each other on the left…
Here is the code

http://pastebin.com/nBRX0zAg

I tried the following but it didnt work :(

<?php

/* Get the layout's page template */
$pageLayoutRootTemplate $this->getLayout()->getBlock('root')->getTemplate();

/* Set the column count based on the layout template used */
switch ($pageLayoutRootTemplate{
    
case 'page/1column.phtml':
        
$_columnCount 4;
        break;

    case 
'page/2columns-left.phtml':
        
$_columnCount 3;
        break;

    case 
'page/2columns-right.phtml':
        
$_columnCount 3;
        break;

    case 
'page/3columns.phtml':
        
$_columnCount 2;
        break;

    default:
        
$_columnCount 3;
        break;
}

?>
 
Magento Community Magento Community
Magento Community
Magento Community
 
kmHelms
Sr. Member
 
Total Posts:  227
Joined:  2012-03-05
 

can you post a link to your site

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