English site map page listing the main navigation menu and its child links as a nested list
Arabic right-to-left site map page listing the main navigation menu and its child links as a nested list

This project is not covered by Drupal’s security advisory policy.

iDigit Gov sitemap adds a human-readable site map for visitors, at /sitemap and as a block. It is generated from real sources, never from hard-coded links: the menus you choose (access-checked for the current visitor) and, optionally, published content of selected types.

It is a community contribution by iDigit. It is not an official DGA product and is not endorsed by DGA.

What it does

  • Site map page at /sitemap and a block, from menus you select and, optionally, published nodes of selected content types.
  • Access-checked: a visitor sees only links they may access.
  • Cache metadata follows the menus and node_list:<type>; cache contexts are language and permissions.
  • Settings under Administration > Configuration > System > Site map settings.
  • Arabic translation included (translations/ar.po); works with right-to-left languages.

What it is not

A visitor-facing map, not an XML sitemap for search engines, and it does not show "last updated" dates.

Related projects

Drupal.org already has the Sitemap module (human-readable) and Simple XML sitemap and XML sitemap (for search engines). This module is smaller, has no dependencies beyond core, and is styled by the iDigit Gov theme; choose whichever fits your site.

Requirements

Drupal core ^11.3 (tested for 1.0.0-beta1 on 11.3.21, 11.4.11 and 11.4.12 with PHP 8.3 and 8.4, and on 11.5.0-beta1, beta only). Core modules node and menu_ui. No contrib dependencies.

Install

composer require 'drupal/idigit_gov_sitemap:^1.0@beta', then enable the module and place the block or link to /sitemap.

Supporting organizations: 
funded the development and ongoing maintenance, released as a community contribution

Project information

Releases