谷歌网站地图中的Magento松散表详细信息

谷歌网站地图中的Magento松散表详细信息,magento,sitemap,Magento,Sitemap,我有谷歌网站地图的问题 正如您在中所看到的,我丢失了详细信息表!。。。如果我点击添加站点地图,我会得到一个白色页面 怎样才能恢复 多谢各位 关于“/app/code/core/Mage/Adminhtml/Block/Sitemap/Grid.php”中的问题。所以检查一下文件。下面是Grid.php的代码 class Mage_Adminhtml_Block_Sitemap_Grid extends Mage_Adminhtml_Block_Widget_Grid { public func

我有谷歌网站地图的问题

正如您在中所看到的,我丢失了详细信息表!。。。如果我点击添加站点地图,我会得到一个白色页面

怎样才能恢复

多谢各位 关于“/app/code/core/Mage/Adminhtml/Block/Sitemap/Grid.php”中的问题。所以检查一下文件。下面是Grid.php的代码

class Mage_Adminhtml_Block_Sitemap_Grid extends Mage_Adminhtml_Block_Widget_Grid
{

public function __construct()
{
    parent::__construct();
    $this->setId('sitemapGrid');
    $this->setDefaultSort('sitemap_id');

}

protected function _prepareCollection()
{
    $collection = Mage::getModel('sitemap/sitemap')->getCollection();
    /* @var $collection Mage_Sitemap_Model_Mysql4_Sitemap_Collection */
    $this->setCollection($collection);
    return parent::_prepareCollection();
}

protected function _prepareColumns()
{
    $this->addColumn('sitemap_id', array(
        'header'    => Mage::helper('sitemap')->__('ID'),
        'width'     => '50px',
        'index'     => 'sitemap_id'
    ));

    $this->addColumn('sitemap_filename', array(
        'header'    => Mage::helper('sitemap')->__('Filename'),
        'index'     => 'sitemap_filename'
    ));

    $this->addColumn('sitemap_path', array(
        'header'    => Mage::helper('sitemap')->__('Path'),
        'index'     => 'sitemap_path'
    ));

    $this->addColumn('link', array(
        'header'    => Mage::helper('sitemap')->__('Link for Google'),
        'index'     => 'concat(sitemap_path, sitemap_filename)',
        'renderer'  => 'adminhtml/sitemap_grid_renderer_link',
    ));

    $this->addColumn('sitemap_time', array(
        'header'    => Mage::helper('sitemap')->__('Last Time Generated'),
        'width'     => '150px',
        'index'     => 'sitemap_time',
        'type'      => 'datetime',
    ));


    if (!Mage::app()->isSingleStoreMode()) {
        $this->addColumn('store_id', array(
            'header'    => Mage::helper('sitemap')->__('Store View'),
            'index'     => 'store_id',
            'type'      => 'store',
        ));
    }

    $this->addColumn('action', array(
        'header'   => Mage::helper('sitemap')->__('Action'),
        'filter'   => false,
        'sortable' => false,
        'width'    => '100',
        'renderer' => 'adminhtml/sitemap_grid_renderer_action'
    ));

    return parent::_prepareColumns();
}

/**
 * Row click url
 *
 * @return string
 */
public function getRowUrl($row)
{
    return $this->getUrl('*/*/edit', array('sitemap_id' => $row->getId()));
}
}