# Create a public site-map page

Source: https://zotonic.com/cookbook/1290/create-a-public-site-map-page

URI: https://zotonic.com/id/1290

Language: en

Render the navigation menu on a named page.

Create a published text page in admin. Give it the unique name `page_site_map` and page path `/site-map`; ensure visitors can see it. Add `priv/templates/page.name.page_site_map.tpl` to your site:

```django
{% extends "page.tpl" %}
{% block content %}
    <h1>{{ id.title }}</h1>
    {% menu id=main_menu %}
{% endblock %}
```

Use the content block defined by your site's actual page layout if it differs. `main_menu` must be the unique name of an existing menu resource; connect the pages you want listed in that menu. Enable `mod_menu` when needed.

Visit `/site-map` as a logged-out visitor. Check every link, including pages hidden by access rules. This lists your menu structure, not every database resource. For a crawler-oriented XML sitemap, use <a href="/id/1292" class="doc-reference doc-reference-module"><code>module#mod_seo_sitemap</code></a> instead of exposing all resources in an HTML loop.

License: 

Attribution: 

Related resources: https://zotonic.com/api/agent/related/1290?language=en


## API access

- [API help](<https://zotonic.com/api-help>)
- [OpenAPI specification](<https://zotonic.com/openapi.json>)
- [This resource as JSON](<https://zotonic.com/api/agent/resource/1290?language=en>)
