RSS + content:encoded

Привет.

Подскажите, возможно кто-то встречался с изменением стандартной RSS ленты для Livestreet. У меня задача простая добавить поле content:encoded — полное содержание топика. Существует файл ActionRSS.class.php:


	protected function RssGood() {
		$aResult=$this->Topic_GetTopicsGood(1,Config::Get('module.topic.per_page')*2,false);
		$aTopics=$aResult['collection'];
		
		$aChannel['title']=Config::Get('view.name');
		$aChannel['link']=Config::Get('path.root.web');
		$aChannel['description']=Config::Get('view.name').' / RSS channel';
				$aChannel['content']=Config::Get('view.name').' / RSS channel';
		$aChannel['language']='ru';
		$aChannel['managingEditor']=Config::Get('general.rss_editor_mail');
		$aChannel['generator']=Config::Get('view.name');
		
		$topics=array();
		foreach ($aTopics as $oTopic){
			$item['title']=$oTopic->getTitle();
			$item['guid']=$oTopic->getUrl();
			$item['link']=$oTopic->getUrl();
			$item['description']=$this->getTopicText($oTopic);
			$item['content:encoded']=$this->getTopicText($oTopic);
			$item['pubDate']=$oTopic->getDateAdd();
			$item['author']=$oTopic->getUser()->getLogin();
			$item['category']=htmlspecialchars($oTopic->getTags());
			$topics[]=$item;
		}
		
		$this->InitRss();
		$this->Viewer_Assign('aChannel',$aChannel);
		$this->Viewer_Assign('aItems',$topics);
		$this->SetTemplateAction('index');
	}


После добавления необходимого поля в RSS выдаче оно не появляется.
Может кто?)
  • avatar
  • +1
    • 1
    • 0
    • 1

1 комментарий

avatar
Еще в шаблоне в ActionRss/index.tpl добавить забыли.
Только зарегистрированные и авторизованные пользователи могут оставлять комментарии.