# Sitemap - Aktionsseiten (Landingpages) darstellen

**URL:** <https://forum.shopware.com/t/sitemap-aktionsseiten-landingpages-darstellen/5693>\
**Category:** Shopware 3.5\
**Tags:** general\
**Created:** [6. Januar 2012 um 15:59 UTC](https://forum.shopware.com/t/sitemap-aktionsseiten-landingpages-darstellen/5693 "2012-01-06T15:59:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![fliesen](https://avatars.discourse-cdn.com/v4/letter/f/22d042/32.png) [@fliesen](https://forum.shopware.com/u/fliesen)\
**Post date:** [6. Januar 2012 um 15:59 UTC](https://forum.shopware.com/t/sitemap-aktionsseiten-landingpages-darstellen/5693/1 "2012-01-06T15:59:20Z")

</div>

Hallo Allerseits, mal wieder das leidige Thema Landingpages! Diese werden standartmäßig nicht in der xml sitemap angezeigt. Hat jemand eine Lösung dafür?

---

<div class="post-metadata">

**Author:** ![klausm](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/klausm/32/17682_2.png) [@klausm](https://forum.shopware.com/u/klausm)\
**Post date:** [6. Januar 2012 um 16:10 UTC](https://forum.shopware.com/t/sitemap-aktionsseiten-landingpages-darstellen/5693/2 "2012-01-06T16:10:48Z")

</div>

[quote=“fliesen”]Hallo Allerseits, mal wieder das leidige Thema Landingpages! Diese werden standartmäßig nicht in der xml sitemap angezeigt. Hat jemand eine Lösung dafür?[/quote] Hallo ! Du kannst die /engine/Shopware/Controllers/Frontend/SitemapXml.php bearbeiten, ist aber nicht updatesicher ! [code]\<?php class Shopware\_Controllers\_Frontend\_SitemapXml extends Enlight\_Controller\_Action  
{  
public function init()  
{  
Shopware()-\>Plugins()-\>Controller()-\>ViewRenderer()-\>setNoRender(); Shopware()-\>Config()-\>sDONTATTACHSESSION = true; $this-\>Response()-\>setHeader(‘Content-Type’, ‘text/xml; charset=iso-8859-1’); } public function indexAction() { Shopware()-\>Config()-\>sDONTATTACHSESSION = true; echo “\<?xml version=\"1.0\" encoding=\"UTF-8\"?\>\r\n”; echo “\r\n”;

```
	$sql= "
		SELECT
			a.id,
			a.name as title,
			DATE(IF(a.changetime!='0000-00-00 00:00:00',a.changetime,IF(a.datum!='0000-00-00', a.datum, ''))) as lastmod
		FROM s_articles as a, s_articles_categories ac
		WHERE a.active=1
		AND a.id = ac.articleID
		AND ac.categoryID=?
	";
	
	$result = Shopware()-&gt;Db()-&gt;fetchAll($sql, array(Shopware()-&gt;System()-&gt;sSubShop["parentID"]));
	if ($result){
		foreach ($result as $article)
		{
			
			$article["loc"] = $this-&gt;Front()-&gt;Router()-&gt;assemble(array('sViewport'=&gt;'detail','sArticle'=&gt;$article["id"]));
			$url = '<url>';
			$url .= '<loc>'.$article['loc'].'</loc>';
			if(!empty($article['lastmod']))
				$url .= '<lastmod>'.$article['lastmod'].'</lastmod>';
			$url .= '<changefreq>weekly</changefreq><priority>0.80</priority>';
			$url .= '</url>';
			$url .= "\r\n";
			echo $url;
		}
		
		$sql= "
			SELECT
				c.id,
				c.description as title,
				MAX(DATE(a.changetime)) as `lastmod`
			FROM 
				s_categories c,
				s_articles_categories ac,
				s_articles a
			WHERE c.id=ac.categoryID
			AND a.id=ac.articleID
			AND c.parent!=1
			GROUP BY ac.categoryID
		";
		$result = Shopware()-&gt;Db()-&gt;fetchAll($sql);
		if($result){
			foreach ($result as $category){
				
				$category["loc"] = $this-&gt;Front()-&gt;Router()-&gt;assemble(array('sViewport'=&gt;'cat','sCategory'=&gt;$category["id"]));
				$url = '<url>';
				$url .= '<loc>'.$category['loc'].'</loc>';
				if(!empty($category['lastmod']))
					$url .= '<lastmod>'.$category['lastmod'].'</lastmod>';
				$url .= '<changefreq>weekly</changefreq><priority>0.80</priority>';
				$url .= '</url>';
				$url .= "\r\n";
				echo $url;
			}
		}

```

echo " [http://www.deineseite.at/landingpage.html](http://www.deineseite.at/landingpage.html) 2011-01-04 weekly 0.70 \r\n";

```
		echo "</urlset>\r\n"; } } }[/code]
```
