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;
}
}
In der Datei class.tx_ddgooglesitemap_ttnews.php folgendes:
if (count($this->pidList) > 0) {
t3lib_div::loadTCA('tt_news');
$res = $GLOBALS['TYPO3_DB']->exec_SELECTquery('uid,datetime,keywords,title',
'tt_news', 'pid IN (' . implode(',', $this->pidList) . ')' .
$this->cObj->enableFields('tt_news'), '', 'datetime DESC'
);
$rowCount = $GLOBALS['TYPO3_DB']->sql_num_rows($res);
while (false !== ($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res))) {
if (($url = $this->getNewsItemUrl($row['uid']))) {
echo $this->renderer->renderEntry($url, $row['datetime'],
'', $row['keywords'], $row['title']);
}
}
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>
Leider bekomme ich das nicht hin, darum habe ich gewartet bis evt.
eine neue Version rauskommt. Gtib es sonst vll. andere Extensions?
Am 21.12.2009, 11:05 Uhr, schrieb Konrad Schneid
<kon...@jugendmagazin.org>:
Entspricht nicht den aktuellen Standarts soweit ich weiss. Kriege
zumidnest folgende Meldung:
Nicht unterstütztes XML-Sitemap-Format
Ihre XML-Sitemap verwendet ein Google News-Format, das für neu
übermittelte XML-Sitemaps nicht mehr unterstützt wird. Führen Sie
eine Aktualisierung auf das neue Format durch. Hängen Sie hierzu
jeder URL in Ihrer XML-Sitemap ein <publication>-Tag sowie weitere
relevante Tags an.
Tatsächlich. Habe eine Notiz an den betreffenden Bug-Report [1]
angehängt.
Wenn du etwas Zeit hast, sollte es nicht allzu schwer sein, einen
Patch zu machen. Wäre super, wenn du das übernehmen könntest!
Steffen
[1] http://forge.typo3.org/issues/show/3033
_______________________________________________
TYPO3-german mailing list
TYPO3-german@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german
_______________________________________________
TYPO3-german mailing list
TYPO3-german@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german
_______________________________________________
TYPO3-german mailing list
TYPO3-german@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german