M
M
Maybe_V2016-10-12 23:23:04
PHP
Maybe_V, 2016-10-12 23:23:04

How to override button in Magento grid?

Ust Gridin the admin panel, which looks like this:
e44456aeb8494920a2001889b10b3d61.png
How can I remove the button "Create New Item"?? Or appoint another for her action?
Grid container constructor:

protected function _construct()
    {
        $helper = Mage::helper('brain_custommenu');
        $this->_blockGroup = 'brain_custommenu';
        $this->_controller = 'adminhtml_categorylist';

        $this->_headerText = $helper->__('Category List');
        $this->_addButtonLabel = $helper->__('Create New Item');


        parent::_construct();
    }

Tried to do so , but the button is not removed!
Need a hint:
  1. How to remove this button?
  2. How can I assign her another one action?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
imdeveloper, 2016-10-13
@link_web

По ссылке конкретный модуль. Нужно переопределить блок который вам нужно и написать код который вы нашли по ссылке

Олег Батищев, 2017-02-21
@z0rg

Идите ко мне в падованы, научу :)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question