# Sitemap im Footer anzeigen als Links

**URL:** https://forum.shopware.com/t/sitemap-im-footer-anzeigen-als-links/105646
**Category:** Allgemein
**Created:** [24. Oktober 2024 um 12:05 UTC](https://forum.shopware.com/t/sitemap-im-footer-anzeigen-als-links/105646 "2024-10-24T12:05:00Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![RAShop](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/rashop/32/24484_2.png) [@RAShop](https://forum.shopware.com/u/RAShop)
#### Post date: [24. Oktober 2024 um 12:05 UTC](https://forum.shopware.com/t/sitemap-im-footer-anzeigen-als-links/105646/1 "2024-10-24T12:05:00Z")

</div>

Hallo Leute,

kann mir jemand sagen, wie man die Sitemap-Struktur als Links im Footer anzeigen kann?

Sitemap Beispiel

Laufsocken  
—\> Socken 1 Grün (Link)  
—\> Socken 2 Rot (Links)  
zum Klicken auf den Artiken?

Danke für eine Info.

VG R.

---

<div class="post-metadata">

### Author: ![RAShop](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/rashop/32/24484_2.png) [@RAShop](https://forum.shopware.com/u/RAShop)
#### Post date: [25. Oktober 2024 um 08:40 UTC](https://forum.shopware.com/t/sitemap-im-footer-anzeigen-als-links/105646/2 "2024-10-25T08:40:43Z")

</div>

Oder anders gesagt, wie kann ich die sitemap.html als Texte als Links anzeigen und die Kategorien vorangestellt an Links?

Ich bekomme nur die sitemap.xml so angezeigt:

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/3X/2/5/25d81cb247699c63970dd497832cbe7d0c0a6e31.png)

---

<div class="post-metadata">

### Author: ![frip-tech.de](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/frip-tech.de/32/24453_2.png) [@frip-tech.de](https://forum.shopware.com/u/frip-tech.de)
#### Post date: [25. Oktober 2024 um 14:42 UTC](https://forum.shopware.com/t/sitemap-im-footer-anzeigen-als-links/105646/3 "2024-10-25T14:42:50Z")

</div>

@RAShop Was genau meinst Du? Willst Du auf die /sitemap.xml verlinken?

---

<div class="post-metadata">

### Author: ![RAShop](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/rashop/32/24484_2.png) [@RAShop](https://forum.shopware.com/u/RAShop)
#### Post date: [25. Oktober 2024 um 19:23 UTC](https://forum.shopware.com/t/sitemap-im-footer-anzeigen-als-links/105646/4 "2024-10-25T19:23:22Z")

</div>

Ich versuche mal das man es besser verstehen kann:

im Footer gibt es einige Links wie zum Beispiel hier aus einem altem Shop, der damals e\*n Gambio Shop war:

![image](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/3X/7/c/7ca0e6888bff63ca198d61c9b2d5c079b81e083c.png)

Wenn man auf Sitemap klickte, dann gab es in der Ansicht alle Stiemap ereignisse zum anklicken wie hier beschrieben:

- [Sitemap](https://www.schwimmshop.store/shop_content.php?coID=8)
 ...

Klickte man auf den Link Sitemap, kamen alle Kategorien mit den Inhalten als Links aufgelistet so dass man über die Sitemap (Footer) einen Link anklicken konnte, und auf das passende Produkt weitergeleitet werden würde.

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/3X/f/b/fb08bc933e2d49283468e5f4eb2c2e053e94f349.png)

Ich hoffe, das wird so verstanden.

Das würde ungefähr so aussehen:

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/3X/c/c/cc846540039a32b3466e64059014e4aff6260184.png)

---

<div class="post-metadata">

### Author: ![frip-tech.de](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/frip-tech.de/32/24453_2.png) [@frip-tech.de](https://forum.shopware.com/u/frip-tech.de)
#### Post date: [26. Oktober 2024 um 04:06 UTC](https://forum.shopware.com/t/sitemap-im-footer-anzeigen-als-links/105646/5 "2024-10-26T04:06:17Z")

</div>

ja, verständlich - hierfür legst Du Dir entweder eine eigene Erlebniswelt an, die Du nach deinen Wünschen konfigurierst, oder du benötigst ein Skript, das die Kategorien, die du darstellen willst (z.B. ausgewählt via Customfield mit Checkbox) in eine Sitemap integriert. So verständlich?

---

<div class="post-metadata">

### Author: ![RAShop](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/rashop/32/24484_2.png) [@RAShop](https://forum.shopware.com/u/RAShop)
#### Post date: [26. Oktober 2024 um 05:43 UTC](https://forum.shopware.com/t/sitemap-im-footer-anzeigen-als-links/105646/6 "2024-10-26T05:43:33Z")

</div>

> [@frip-tech.de](#):
>
> ja

Vielen Dank.  
Einigermaßen ist das Verständlich.

Wäre der Code als sitemap.php, dann so in etwa ok?

```auto
<?php
// Define your base URL
$base_url = "https://www.schxx.de/";

// Create an array of URLs
$urls = [
    "",
    "about",
    "contact",
    "products",
    "products/item1",
    "products/item2"
];

// Start XML file
$sitemap = '<?xml version="1.0" encoding="UTF-8"?>';
$sitemap .= '<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">';

// Loop through URLs and add them to the sitemap
foreach ($urls as $url) {
    $sitemap .= '<url>';
    $sitemap .= '<loc>' . $base_url . $url . '</loc>';
    $sitemap .= '<lastmod>' . date('Y-m-d') . '</lastmod>';
    $sitemap .= '<changefreq>monthly</changefreq>';
    $sitemap .= '<priority>0.8</priority>';
    $sitemap .= '</url>';
}

// Close XML file
$sitemap .= '</urlset>';

// Save the sitemap to a file
file_put_contents('sitemap.xml', $sitemap);

echo "Sitemap generated successfully!";
?>

```

---

<div class="post-metadata">

### Author: ![frip-tech.de](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/frip-tech.de/32/24453_2.png) [@frip-tech.de](https://forum.shopware.com/u/frip-tech.de)
#### Post date: [26. Oktober 2024 um 06:39 UTC](https://forum.shopware.com/t/sitemap-im-footer-anzeigen-als-links/105646/7 "2024-10-26T06:39:56Z")

</div>

kann ich ohne sauberen Livetest nicht beurteilen.
