On my site I use Field Collections and Commerce, and I noticed some strange behavior in my image sitemap. There were images from field collections and commerce products appearing in the image sitemap for specific nodes. Tracking the problem down, it's because of the fact that the query used to build the sitemap doesn't specify to only use nodes in the 'file_usage' table. Therefore entities with the same ids that aren't nodes were also used.
The added patch fixes that issue and also supports the Field Collection module; it checks if the field in a specific nodetype are field collections and if they are, checks if these field collections have images and they are added to the sitemap.
Please review this patch, because I think is a valuable addition for this module!
| Comment | File | Size | Author |
|---|---|---|---|
| google_image_sitemap-support-field-collection.patch | 3.16 KB | nitebreed |
Comments
Comment #1
vincer commentedI'd like this also. I use tons of field collections.
Comment #2
jerry commentedThis is working OK for me with Commerce, though the patch needs to be re-rolled from the module directory to eliminate non-portable path information. I haven't tested it with Field Collections.