0

What is the proper way to e.g: get Sitemap generation grid to load on custom route? Currently on custom route the grid layout won't be rendered, all I see is "Popular Site Map" title which comes from my:

Product\Sitemap\Controller\Adminhtml\PopularSitemap;
/**
 * Index action
 *
 * @return void
 */
public function execute()
{
    $this->_initAction();
    $this->_view->getPage()->getConfig()->getTitle()->prepend(__('Popular Site Map'));
    $this->_view->renderLayout();
}

1 Answer 1

0

I fixed it. The mistake was very small and stupid :), reference container block was refencing, non exsistant block->

<referenceContainer name="content">
        <block class="Product\Sitemap\Block\Adminhtml\Sitemap"
name="adminhtml.popular.sitemap.container"/>
</referenceContainer>

It should be->

<referenceContainer name="content">
        <block class="Product\Sitemap\Block\Adminhtml\PopularSitemap" name="adminhtml.popular.sitemap.container"/>
</referenceContainer>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.