[TYPO3-german] Google News-Sitemap

Peter Russ peter.russ at 4many.net
Mon Dec 21 16:20:21 CET 2009


--- 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?

-- 
loans that change lives http://www.kiva.org

_____________________________
uon GbR
http://www.uon.li
http://www.xing.com/profile/Peter_Russ


More information about the TYPO3-german mailing list