4 format the code
source | link

I have a custom grid which resembles the Manage Products grid in Catalog Menu.

I need to get the corresponding action link to each entity item. How do i do that?

My custom grid is declared in the class Mynamespace_Mymodule_Block_Adminhtml_MyblockGroup_Grid with _prepareColumns function for the action column as follows

$this->addColumn('action',
        array(
            'header'    => Mage::helper('catalog')->__('Action'),
            'width'     => '50px',
            'type'      => 'action',
            'getter'     => 'getId',
            'actions'   => array(
                array(
                    'caption' => Mage::helper('catalog')->__('Edit'),
                    'url'     => array(
                        'base'=>'*/*/edit',
                        'params'=>array('store'=>$this->getRequest()->getParam('store'))
                    ),
                    'field'   => 'id'
                )
            ),
            'filter'    => false,
            'sortable'  => false,
            'index'     => 'stores',
    ));

As of now, the link which this action getting is '_baseUrl/adminfrontNameforMyModule/controller_action/edit/id/entity_id'.

I assume, If this action gets the link to '_baseUrl/admin/catalog_product/edit/id/entity_id' then my issue is resolved.

Can any one help me with this?

Billions of Thanks in Advance

I have a custom grid which resembles the Manage Products grid in Catalog Menu.

I need to get the corresponding action link to each entity item. How do i do that?

My custom grid is declared in the class Mynamespace_Mymodule_Block_Adminhtml_MyblockGroup_Grid with _prepareColumns function for the action column as follows

$this->addColumn('action',
        array(
            'header'    => Mage::helper('catalog')->__('Action'),
            'width'     => '50px',
            'type'      => 'action',
            'getter'     => 'getId',
            'actions'   => array(
                array(
                    'caption' => Mage::helper('catalog')->__('Edit'),
                    'url'     => array(
                        'base'=>'*/*/edit',
                        'params'=>array('store'=>$this->getRequest()->getParam('store'))
                    ),
                    'field'   => 'id'
                )
            ),
            'filter'    => false,
            'sortable'  => false,
            'index'     => 'stores',
    ));

As of now, the link which this action getting is '_baseUrl/adminfrontNameforMyModule/controller_action/edit/id/entity_id'.

I assume, If this action gets the link to '_baseUrl/admin/catalog_product/edit/id/entity_id' then my issue is resolved.

Can any one help me with this?

Billions of Thanks in Advance

I have a custom grid which resembles the Manage Products grid in Catalog Menu.

I need to get the corresponding action link to each entity item. How do i do that?

My custom grid is declared in the class Mynamespace_Mymodule_Block_Adminhtml_MyblockGroup_Grid with _prepareColumns function for the action column as follows

$this->addColumn('action',
        array(
            'header'    => Mage::helper('catalog')->__('Action'),
            'width'     => '50px',
            'type'      => 'action',
            'getter'     => 'getId',
            'actions'   => array(
                array(
                    'caption' => Mage::helper('catalog')->__('Edit'),
                    'url'     => array(
                        'base'=>'*/*/edit',
                        'params'=>array('store'=>$this->getRequest()->getParam('store'))
                    ),
                    'field'   => 'id'
                )
            ),
            'filter'    => false,
            'sortable'  => false,
            'index'     => 'stores',
    ));

As of now, the link which this action getting is '_baseUrl/adminfrontNameforMyModule/controller_action/edit/id/entity_id'.

I assume, If this action gets the link to '_baseUrl/admin/catalog_product/edit/id/entity_id' then my issue is resolved.

Can any one help me with this?

3 format the code
source | link

I have a custom grid which resembles the Manage Products grid in Catalog Menu.

I need to get the corresponding action link to each entity item. How do i do that?

My custom grid is declared in the class Mynamespace_Mymodule_Block_Adminhtml_MyblockGroup_GridMynamespace_Mymodule_Block_Adminhtml_MyblockGroup_Grid with _prepareColumns_prepareColumns function for the action column as follows

$this->addColumn('action',
        array(
            'header'    => Mage::helper('catalog')->__('Action'),
            'width'     => '50px',
            'type'      => 'action',
            'getter'     => 'getId',
            'actions'   => array(
                array(
                    'caption' => Mage::helper('catalog')->__('Edit'),
                    'url'     => array(
                        'base'=>'*/*/edit',
                        'params'=>array('store'=>$this->getRequest()->getParam('store'))
                    ),
                    'field'   => 'id'
                )
            ),
            'filter'    => false,
            'sortable'  => false,
            'index'     => 'stores',
    ));

As of now, the link which this action getting is '_baseUrl/adminfrontNameforMyModule/controller_action/edit/id/entity_id''_baseUrl/adminfrontNameforMyModule/controller_action/edit/id/entity_id'.

I assume, If this action gets the link to '_baseUrl/admin/catalog_product/edit/id/entity_id''_baseUrl/admin/catalog_product/edit/id/entity_id' then my issue is resolved.

Can any one help me with this?

Billions of Thanks in Advance

I have a custom grid which resembles the Manage Products grid in Catalog Menu.

I need to get the corresponding action link to each entity item. How do i do that?

My custom grid is declared in the class Mynamespace_Mymodule_Block_Adminhtml_MyblockGroup_Grid with _prepareColumns function for the action column as follows

$this->addColumn('action',
        array(
            'header'    => Mage::helper('catalog')->__('Action'),
            'width'     => '50px',
            'type'      => 'action',
            'getter'     => 'getId',
            'actions'   => array(
                array(
                    'caption' => Mage::helper('catalog')->__('Edit'),
                    'url'     => array(
                        'base'=>'*/*/edit',
                        'params'=>array('store'=>$this->getRequest()->getParam('store'))
                    ),
                    'field'   => 'id'
                )
            ),
            'filter'    => false,
            'sortable'  => false,
            'index'     => 'stores',
    ));

As of now, the link which this action getting is '_baseUrl/adminfrontNameforMyModule/controller_action/edit/id/entity_id'.

I assume, If this action gets the link to '_baseUrl/admin/catalog_product/edit/id/entity_id' then my issue is resolved.

Can any one help me with this?

Billions of Thanks in Advance

I have a custom grid which resembles the Manage Products grid in Catalog Menu.

I need to get the corresponding action link to each entity item. How do i do that?

My custom grid is declared in the class Mynamespace_Mymodule_Block_Adminhtml_MyblockGroup_Grid with _prepareColumns function for the action column as follows

$this->addColumn('action',
        array(
            'header'    => Mage::helper('catalog')->__('Action'),
            'width'     => '50px',
            'type'      => 'action',
            'getter'     => 'getId',
            'actions'   => array(
                array(
                    'caption' => Mage::helper('catalog')->__('Edit'),
                    'url'     => array(
                        'base'=>'*/*/edit',
                        'params'=>array('store'=>$this->getRequest()->getParam('store'))
                    ),
                    'field'   => 'id'
                )
            ),
            'filter'    => false,
            'sortable'  => false,
            'index'     => 'stores',
    ));

As of now, the link which this action getting is '_baseUrl/adminfrontNameforMyModule/controller_action/edit/id/entity_id'.

I assume, If this action gets the link to '_baseUrl/admin/catalog_product/edit/id/entity_id' then my issue is resolved.

Can any one help me with this?

Billions of Thanks in Advance

2 edited tags
| link
    Tweeted twitter.com/#!/StackMagento/status/342824368914694144
1
source | link