protected function _prepareColumns() { $baseUrl = $this->getUrl(); $this->addColumn('sc_block_label', array('header' => Mage::helper('sc_cmsblockmanagement')->__('Block Label'), 'index' => 'sc_block_label', 'width' => '100px', 'renderer' => 'SnowCommerce_CMSBlockManagement_Block_Adminhtml_Labels_Renderer_Label')); $this->addColumn('title', array('header' => Mage::helper('cms')->__('Title'), 'align' => 'left', 'index' => 'title')); $this->addColumn('identifier', array('header' => Mage::helper('cms')->__('Identifier'), 'align' => 'left', 'index' => 'identifier')); if (!Mage::app()->isSingleStoreMode()) { $this->addColumn('store_id', array('header' => Mage::helper('cms')->__('Store View'), 'index' => 'store_id', 'type' => 'store', 'store_all' => true, 'store_view' => true, 'sortable' => false, 'filter_condition_callback' => array($this, '_filterStoreCondition'))); } $this->addColumn('is_active', array('header' => Mage::helper('cms')->__('Status'), 'index' => 'is_active', 'type' => 'options', 'options' => array(0 => Mage::helper('cms')->__('Disabled'), 1 => Mage::helper('cms')->__('Enabled')))); $this->addColumn('creation_time', array('header' => Mage::helper('cms')->__('Date Created'), 'index' => 'creation_time', 'type' => 'datetime')); $this->addColumn('update_time', array('header' => Mage::helper('cms')->__('Last Modified'), 'index' => 'update_time', 'type' => 'datetime')); return parent::_prepareColumns(); }
protected function _prepareColumns() { $baseUrl = $this->getUrl(); $this->addColumn('title', array('header' => Mage::helper('cms')->__('Title'), 'align' => 'left', 'index' => 'title')); $this->addColumn('identifier', array('header' => Mage::helper('cms')->__('Identifier'), 'align' => 'left', 'index' => 'identifier')); if (!Mage::app()->isSingleStoreMode()) { $this->addColumn('store_id', array('header' => Mage::helper('cms')->__('Store View'), 'index' => 'store_id', 'type' => 'store', 'store_all' => true, 'store_view' => true, 'sortable' => false, 'filter_condition_callback' => array($this, '_filterStoreCondition'))); } $this->addColumn('is_active', array('header' => Mage::helper('cms')->__('Status'), 'index' => 'is_active', 'type' => 'options', 'options' => array(0 => Mage::helper('cms')->__('Disabled'), 1 => Mage::helper('cms')->__('Enabled')))); $this->addColumn('creation_time', array('header' => Mage::helper('cms')->__('Date Created'), 'index' => 'creation_time', 'type' => 'datetime')); $this->addColumn('update_time', array('header' => Mage::helper('cms')->__('Last Modified'), 'index' => 'update_time', 'type' => 'datetime')); if (Mage::getStoreConfig('transfer/general/site') == 'staging') { $this->addColumn('push_to_live', array('header' => Mage::helper('cms')->__('Push To Live'), 'index' => 'push_to_live', 'type' => 'datetime')); } return parent::_prepareColumns(); }
protected function _prepareColumns() { $this->addColumn('block_id', array('header' => Mage::helper('cms')->__('Block Id'), 'width' => '50px', 'index' => 'block_id')); parent::_prepareColumns(); }
protected function _prepareColumns() { parent::_prepareColumns(); $this->addExportType('*/cms_enhanced_block/exportCsv', Mage::helper('clearandfizzy_enhancedcms')->__('CSV')); return $this; }