Hallo Zusammen,
ich möchte in der rss.tpl nicht nur auf die Kurzbeschreibung ([{$item->description}]) sondern auch auf z.Bsp. Preis/Artnum/Thumb 1-8/etc. $item->thumb1 in den Feed einbinden.
erstmal quick&dirty
in der core/oxrssfeed.php
Anpassung 1
const CACHE_TTL = 1;
Anpassung 2
protected function _getArticleItems(oxArticleList $oList){
$oItem->artnum = strip_tags($oArticle->oxarticles__oxartnum->value);
}
In der “view/rss.php” habe ich keine Stelle gefunden um die Variablen zu ziehen.
Allerdings erfolgt kein Output, die Variablen bleiben leer
Hat jemand einen Tipp/Link oder hat die RSS-View schonmal entsprechend erweitert? Die Forensuche brachte leider keinen Erfolg. Thx Stefan
hmmm … da lag wohl noch was im Cache :mad:
hardcoded kann die Funktion “_getArticleItems” (core/oxrssfeed.php) zum Beispiel so erweitert werden
$oItem->artnum = strip_tags($oArticle->oxarticles__oxartnum->value);
als Modulansatz
<?php
if (!class_exists("oxRssFeed")) require_once(getShopBasePath()."core/oxrssfeed.php");
class pp_oxRssFeed extends pp_oxRssFeed_parent
{
protected function _getArticleItems(oxArticleList $oList)
{
$myUtilsUrl = oxUtilsUrl::getInstance();
$aItems = array();
$oLang = oxLang::getInstance();
$oStr = getStr();
foreach ($oList as $oArticle) {
$oItem = new oxStdClass();
$oItem->artnum = strip_tags($oArticle->oxarticles__oxartnum->value);
$aItems[] = $oItem;
}
return $aItems;
}
}
?>
Danke für den Monolog, Stefan 
Gruß
… solange am Ende die Lösung herauskommt, keine Problem 