Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

posts are not added to the sitemap #6

Closed
Wojton opened this issue Jan 21, 2016 · 5 comments
Closed

posts are not added to the sitemap #6

Wojton opened this issue Jan 21, 2016 · 5 comments

Comments

@Wojton
Copy link

Wojton commented Jan 21, 2016

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.

@magefan
Copy link
Owner

magefan commented Jan 22, 2016

Hello Piotr, this issue is fixed. Please update you local code.

@Wojton
Copy link
Author

Wojton commented Jan 25, 2016

Hi,
Map does not show up correctly.
Invalid path for posts. It is only the main domain.
Example:
http://domain.dev/weekly0.25
http://domain.dev/weekly0.25
fix

@magefan
Copy link
Owner

magefan commented Jan 26, 2016

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.

@Wojton
Copy link
Author

Wojton commented Jan 28, 2016

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(),
            ]
        );
(...)

@magefan
Copy link
Owner

magefan commented Jan 29, 2016

Thank you Piotr. $this->getStoreId() has been added. Can this issue be closed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants