Pages

Saturday, January 22, 2011

Working with XML-Sitemap and Views

The newest development version of XML-sitemap for Drupal 6 and the released version of XML-sitemap for Drupal 7 both added an easy method to add views with a page display to your xml sitemap. The old method of adding custom links for each view page you create is over since the addition of the xml-sitemap menu module. Even if the view page display is not meant to be shown in any menu on your Drupal page, all you need to do is not show the menu. So it is pretty much a hidden menu, but since you can include the menu still in the xml-sitemap now, all view pages are now listed. So, to recap, here are the directions again:
  1. Create a menu, if you don't want it to show just don't display it on the Blocks admin page
  2. Enable the menu in the XML-sitemap options to be included in the XML sitemap it creates.
  3. When creating a view with a page display, simple add a menu entry to the hidden menu

1 comment:

  1. Hi,
    I have integrated the XML site map module but I need the result in view.

    ReplyDelete