Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Adding custom links, such as Views pages is only available in the 6.x-2.x version of the XML sitemap module.
Option 1:
- Enable the 6.x-2.x XML sitemap custom sub-module.
- Manually add the links to your views at admin/settings/xmlsitemap/custom
Option 2:
- Enable the 6.x-2.x XML sitemap menu sub-module.
- Create a new menu at admin/build/menu/add with the menu name xmlsitemap and title XML sitemap. Make sure that the 'Include this menu in the sitemap.' checkbox is selected.
- Edit your view's page view, and add the view to the 'XML sitemap' menu under the 'Page settings'.
Comments
how do you do this in drupal 7?
how can this be achieved in 7.x-2.x?
Drupal 7
The pathes are changed in Drupal 7
Option 1:
/admin/config/search/xmlsitemap/custom/add
Option 2:
/admin/config/search/xmlsitemap/settings
Views with pagination
How to add all paginated pages to the XML sitemap?
Drupal 7 and Views with Pagination
Just did this in Drupal 7. We had 13 pages of pagination, around 600 products to get into sitemap.xml.
The steps:
Thanks you for the
Thanks you for the information but I'm sorry, I think you are mistaken here...
As far as I know what you get with your instructions is your 600 articles listed in your xmlsitemap, not your views listing pages.
I don't know how to get /blog, /blog?page=2 /blog/page=3 ... to be included in the site map but the way you mention has nothing to do with this (AFAIK)
I'm not able to find any information about this...
Anyone out there?
any solution?
I agree with @neurojavi... anybody has a solution?
No solution right now
It is just a subscribe...
Maybe my tricky solution
Maybe my tricky solution would help someone. For views pages i've used hook in custom module, which automatically adds views pages to xmlsitemap on open. It uses xmlsitemap_custom module storage. These pages can be viewed in admin/config/search/xmlsitemap/custom. It is not good way, but it can be basic for further modification or as quick temporary solution.
Don't forget to add dependencies to module info file:
Subscribing
Subscribing
Paginated Views & XML Sitemap
Has anyone found a workable solution for indexing paginated views pages on links rebuild?
This might help - XML sitemap
This might help - XML sitemap views. Just created it for a temporary need, might not develop it any further, but someone might find it useful...