sijandi Posted April 26, 2015 Report Share Posted April 26, 2015 Hallo miteinander, folgender Code exportiert mir ganz brav die Kategorien und Produkte. Leider bemängelt dann aber Google, dass die Sitemap zu gross (>50'000) ist. Weiss jemand wie ich den Code anpassen muss, damit ein Split der Sitemap möglich ist? {php} $added = false; if (!$added) { global $db; $rs = $db->Execute("SELECT * FROM xt_seo_url WHERE link_type=2"); while (!$rs->EOF) { echo '<url> <loc>'._SYSTEM_BASE_HTTP._SRV_WEB.$rs->fields['url_text'].'</loc> <lastmod>'.date('c', time()).'</lastmod> <changefreq>monthly</changefreq> <priority>0.9</priority> </url>'."\n"; $rs->MoveNext(); } $added=true; } {/php} <url> <loc>{$data.products_link}</loc> <lastmod>{$smarty.now|date_format:"%Y-%m-%d"}</lastmod> <changefreq>monthly</changefreq> <priority>0.8</priority> </url> Vielen Dank für Eure Hilfe Sijandi Link to comment Share on other sites More sharing options...
sijandi Posted October 6, 2015 Author Report Share Posted October 6, 2015 Sorry wenn ich dies nochmals hochpushe, aber weiss niemand Rat? Wäre sehr dankbar!GrussSijandi Link to comment Share on other sites More sharing options...
SvFricke Posted October 6, 2015 Report Share Posted October 6, 2015 Tja - leidiges Thema bisher ohne Lösung: Beitrag im Forum Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.