# lastmod Attribut bei Index-Seite in der Sitemap hinzufügen

**URL:** <https://forum.shopware.com/t/lastmod-attribut-bei-index-seite-in-der-sitemap-hinzufugen/38765>\
**Category:** Allgemein\
**Created:** [4. August 2016 um 07:01 UTC](https://forum.shopware.com/t/lastmod-attribut-bei-index-seite-in-der-sitemap-hinzufugen/38765 "2016-08-04T07:01:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![iLuHa](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/iluha/32/8191_2.png) [@iLuHa](https://forum.shopware.com/u/iLuHa)\
**Post date:** [4. August 2016 um 07:01 UTC](https://forum.shopware.com/t/lastmod-attribut-bei-index-seite-in-der-sitemap-hinzufugen/38765/1 "2016-08-04T07:01:47Z")

</div>

Hallo zusammen,

ich würde gerne der Hauptseite / Index ebenfalls ein lastmod Attribut in der Sitemap.xml mitgeben.  
Nun habe ich die richtige Stelle hierfür auch schon gefunden:

_frontend/sitemap\_xml/index.tpl_

```
{block name="frontend_sitemap_xml_homepage"}
    {include file="frontend/sitemap_xml/entry.tpl" urlParams = ['controller' => 'index']}
{/block}

```

Die Frage ist jetzt nur, wie ich ihm das lastmod Attribut mitgebe, so wie beispielsweiße bei den Kategorien wird es wohl kaum funktionieren:

```
{block name="frontend_sitemap_xml_categories"}
    {foreach $sitemap.categories as $category}
        {if $category.show}
            {include file="frontend/sitemap_xml/entry.tpl" urlParams = $category.urlParams lastmod = $category.changed}
        {/if}
    {/foreach}
{/block}

```

Habe leider nichts hierzu finden können.
