With pagination enabled, nodes can be split across multiple pages. If a page is called /node/157 then each page's URL is of the form node/157?page=1. Would it be possible to generate a separate gsitemap URL for each page of an article? At the moment, I think Google has a little trouble finding pages other than the first page.

Thanks,
Jack

Comments

flanderz’s picture

Of course it would be possible - just a question of how hard it will be and who is going to do the work ;-) Not sure how active this module is but I am considering a patch for this since I need it for my site as well. Would such a patch be considered?

darren oh’s picture

Title: Pagination » Provide links for sitemaps
Project: Google Sitemap » Paging
Version: master » 5.x-1.0
Status: Active » Needs review

Any module can provide additional links using hook_gsitemap(). Moving to the paging project.

darren oh’s picture

StatusFileSize
new5.33 KB

Forgot to attach patch.

darren oh’s picture

StatusFileSize
new5.34 KB

Fixed two errors in the install file.

darren oh’s picture

StatusFileSize
new5.66 KB

Fixed to prevent the same links from being returned for every page of the site map.

darren oh’s picture

StatusFileSize
new6.01 KB

New patch for the latest version of hook_gsitemap().

Gurpartap Singh’s picture

Status: Needs review » Needs work

Rather than adding the code into paging module, a contrib version would be better: paging_gsitemaps.module. And host it as a separate project or just include in contribs directory. Also can you consider moving it to gsitemap project, in case it's maintained within any of project? Because most users using paging aren't using gsitemaps too, but seo/site-promotion focussed people look into gsitemap and paging features together..? I need sleep :P

darren oh’s picture

There's no reason for gsitemap to host hook_gsitemap() implementations for every module that generates links.

darren oh’s picture

If you look at the patch, you'll see that it includes some features to make the paging available to other modules.

darren oh’s picture

Assigned: Unassigned » darren oh
Status: Needs work » Fixed

Fixed in CVS commit 65495.

killes@www.drop.org’s picture

Status: Fixed » Closed (fixed)