This module extends features of XML Sitemap module.

According to Google Webmaster Tools Help (http://www.google.com/support/webmasters/bin/answer.py?answer=178636) we are able to add additional information about important images on site pages.
This module will add information about all published images (from image fields in content types) to XML Sitemap.

Features plan
To create ability to choose what image fields will be added to sitemap (so add setting in field edit)

Installation notes are here:
http://drupal.org/sandbox/InternetDevels.com/1154018

CommentFileSizeAuthor
#4 xmlsitemap_images.tar_.gz3.1 KBleanazulyoro

Comments

dave reid’s picture

This features has *already* been planned on being added to XML sitemap. As the maintainer I'd like to see work being put into the main module.

See:
#451234: Support for extended sitemap formats (e.g. video, news, image, mobile)
#1154062: Submit as a patch to the main XMLSitemap module

dave reid’s picture

Status: Needs review » Needs work
tim.plunkett’s picture

Status: Needs work » Closed (won't fix)

Closing, feel free to re-open if this was a mistake.

leanazulyoro’s picture

StatusFileSize
new3.1 KB

hello,
I've taken the liberty to get the code from the sandbox and change several things, while also port it to drupal 6, I also changed a little the patch for xmlsitemap.
The result is good, it basically searches for imagefields in the node and adds tags for each image in them.
I also added a "hook_xmlsitemap_images_file_links" , to allow other modules to modify the list of images before the markup gets built. I did this because in my case I have a content type that has a nodereference field that referenes nodes that contain an imagefield. So I implemented that hook from another module and added the images from those referenced nodes to the node that referenced them.

To activate the functionallity I added a checkbox "Add image references to each node" in the XMLsitemap fieldset in content types' edit forms, so you can activate it per content type.

I'm attaching the modified module, it also contains the modified xmlsitemap.patch.

leanazulyoro’s picture

Status: Closed (won't fix) » Needs review
elc’s picture

Project: Drupal.org security advisory coverage applications » XML sitemap
Version: » 7.x-2.x-dev
Component: module » Other
Status: Needs review » Needs work

How about we move this over to the xmlsitemap module issue queue since that's where things seem to be heading. It requires a patch to xml sitemap, and it's a direct addition that is already planned.

Also, @leanazulyoro please only submit patches. Full code dumps like that are not very useful as someone has to carefully go through and pick out the changes manually rather than actually using the code.

Please move this back to App Queue if needed.

Anonymous’s picture

Status: Needs work » Closed (duplicate)