Gut das habe ich nun hinbekommen. Jetzt wird meine Sitemap aber garnicht mehr von Google angenommen. Meine Sitemap sieht so aus http://www.pc-luchs.de/?eID=dd_googlesitemap&sitemap=news&pidList=4&singlePid=6&type=news Was ist daran falsch? Habe es auf einer anderen Seite mit einem Validator prüfen lassen und da war alles korrekt?
--- Original Nachricht ---
Absender:   Konrad Schneid
Datum:       21.12.2009 15:09:
Oder ich stelle mal mein Problem vor, wenn ich versuche das Problem zu beheben:

In der Datei class.tx_ddgooglesitemap_news_renderer.php habe ich folgendes geändert:

public function renderEntry($url, $lastModification = 0, $changeFrequency = '', $keywords = '') {
$content = '<url>';
$content .= '<loc>' . $url . '</loc>';
// News must have a publication date, so we put this unconditionally!
$content .= '<news:news>';
$content .= '<news:publication> <news:name>PC-Luchs</news:name> <news:language>de</news:language></news:publication>'; $content .= '<news:publication_date>' . date('c', $lastModification) . '</news:publication_date>';
$content .= '<news:title>' . $title . '</news:title>';
if ($keywords) {
$content .= '<news:keywords>' . htmlspecialchars($keywords) . '</news:keywords>';
}
$content .= '</news:news>';
$content .= '</url>';

return $content;
}
}
[...]

Problem ist hierbei nur folgendes:

Der Eintrag sieht so aus: Der Titel fehlt hier und auch das Ende des Tages </news:title> setzt er nicht ein. Warum?

<url>
−
<loc>
http://www.pc-luchs.de/news/testbericht/kein-vlc-player-fuer-mac.html
</loc>
−
<news:news>
−
<news:publication>
<news:name>PC-Luchs</news:name>
<news:language>de</news:language>
</news:publication>
<news:publication_date>2009-12-17T16:38:00+01:00</news:publication_date>
<news:title/>
</news:news>
</url>

Und woher hat der renderer den $title?


_______________________________________________
TYPO3-german mailing list
TYPO3-german@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german

Antwort per Email an