# Sitemap.xml - no extra access for Sections

**URL:** <https://zola.discourse.group/t/sitemap-xml-no-extra-access-for-sections/240>\
**Category:** Support\
**Created:** [November 10, 2019, 11:40am UTC](https://zola.discourse.group/t/sitemap-xml-no-extra-access-for-sections/240 "2019-11-10T11:40:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![SgtIria](https://yyz2.discourse-cdn.com/free1/user_avatar/zola.discourse.group/sgtiria/32/85_2.png) [@SgtIria](https://zola.discourse.group/u/SgtIria)\
**Post date:** [November 10, 2019, 11:40am UTC](https://zola.discourse.group/t/sitemap-xml-no-extra-access-for-sections/240/1 "2019-11-10T11:40:49Z")

</div>

The [documentation](https://www.getzola.org/documentation/templates/sitemap/) says we should have access to extra when generating a sitemap.xml.

```auto
permalink: String;
date: String?;
extra: Hashmap<String, Any>?;

```

This seems to be true for pages, but I cannot get access to extra within sections.Yet I can add [extra data to a section](https://www.getzola.org/documentation/content/section/). Is this me doing something wrong or are pages and sections for `SitemapEntry` items different?

**The only reason I’m adding extra toml data to sections** is because I want a date for a section so I can set the `lastmod` for section pages in my sitemap.xml.

It would be simpler if a section has a `date` frontmatter field/item which could then be accessed like date for a page in the `sitemap.xml`.

Section pages might not be content pages rendered to a user, but they are going to be used in JSON-LD schema, meta tags and sitemaps.xml so so need a date, and even assets attached to them really.

Thanks.

---

<div class="post-metadata">

**Author:** ![keats](https://avatars.discourse-cdn.com/v4/letter/k/34f0e0/32.png) [@keats](https://zola.discourse.group/u/keats)\
**Post date:** [November 11, 2019, 10:46am UTC](https://zola.discourse.group/t/sitemap-xml-no-extra-access-for-sections/240/2 "2019-11-11T10:46:17Z")

</div>

Yep that’s a bug, the code adding the sections ([https://github.com/getzola/zola/blob/master/components/site/src/sitemap.rs#L62-L81](https://github.com/getzola/zola/blob/master/components/site/src/sitemap.rs#L62-L81)) doesn’t do the same as for the pages.

Created an issue for it: [https://github.com/getzola/zola/issues/842](https://github.com/getzola/zola/issues/842)
