Closed Wojton closed 8 years ago
Hello Piotr, this issue is fixed. Please update you local code.
Hi, Map does not show up correctly. Invalid path for posts. It is only the main domain. Example:
Piotr, we cannot replicate the issue on our end. Could you please send to us your ftp and admin panel credentials, so we can check and fix that. Email: support@magefan.com Contact form: http://magefan.com/#contact
If you are working on localhost, we can solve this problem using teamviewer.
The _sitemapItems[] category should be added parameter $this->getStoreId() Sitemap is generated correctly.
(...)
$this->_sitemapItems[] = new \Magento\Framework\DataObject(
[
'changefreq' => 'weekly',
'priority' => '0.25',
'collection' => \Magento\Framework\App\ObjectManager::getInstance()->create(
'Magefan\Blog\Model\Category'
)->getCollection($this->getStoreId())
->addStoreFilter($this->getStoreId())
->addActiveFilter(),
]
);
(...)
Thank you Piotr. $this->getStoreId() has been added. Can this issue be closed?
in Magento\Sitemap\Model\Sitemap\SitemapPlagin.php $subject->addSitemapItems($sitemapItem); Method 'addSitemapItems' does not exist and posts are not added to the sitemap in Magento 2 Blog Extension by Magefan.