Jump to content

Extra column on exported RSS feed


Recommended Posts

Is it possible to add an extra column to the exported RSS feed without a hook, as I will need this functionality on IPS5 as well?

Could contain: File, Webpage, Page, Text

Could contain: Page, Text, Business Card, Paper

- \IPS\core\Rss::generate()

		/* We have to use get() to ensure CDATA tags wrap the title properly */
		$title		= \IPS\Member::loggedIn()->language()->get( "rss_export_title_{$this->_id}" );
		$description	= \IPS\Member::loggedIn()->language()->get( "rss_export_title_{$this->_id}_desc" );
		
		$document = \IPS\Xml\Rss::newDocument( $this->url(), $title, $description );
		
		foreach( $results AS $result )
		{
			$result->addToRssFeed( $document );
		}
		
		return $document->asXML();
	}

Thank you.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...