Try the Demo

Magento

eCommerce Software for Online Growth

Magento Forum

Our new hosted solution for small & emerging businesses
   
Multisite Sitemap Bug
 
jnorton01
Member
 
Total Posts:  49
Joined:  2007-10-22
 

Hello,

I have a blog set up that uses different blog posts on different domains. When generating the XML sitemap files for each domain all blog posts in the database are written to the XML file regardless of the domain used for generating the XML file.

I.e. blog posts for site 1 are shown in the sitemap XML file for site 1 and site 2 and blog posts for site 2 are shown in sitemap XML file site 1 and 2. In brief, the sitemap.php file in /app/code/community/AW/Blog/Model/ doesn’t respect multiple websites sitemap generation.

Any advice on how to get the aw_blog working for multiple store sitemaps would be great.

 Signature 

J Norton Interactive Design User Experience Design and Online Advertising.

 
Magento Community Magento Community
Magento Community
Magento Community
 
jnorton01
Member
 
Total Posts:  49
Joined:  2007-10-22
 

Couldn’t wait so made some time to fix the bug.

Edit:

app/code/community/AW/Blog/Model/Sitemap.php

Change line 92

$collection Mage::getModel('blog/blog')->getCollection($storeId);

To:

$collection Mage::getModel('blog/blog')->getCollection()->addStoreFilter($storeId);

This bug fix applies to aw_blog version 1.0.14

 Signature 

J Norton Interactive Design User Experience Design and Online Advertising.

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top
 
© Copyright 2012 Magento Inc.
Privacy Policy|Terms of Service
Magento Community Count
701238 users|1027 users currently online|497257 forum posts