For each purpose a different block type can be used. The general purpose blocks can be used for several solutions. The Block Bundle ships with more specific block types.
The RssBlock extends the ActionBlock and allows you to read feed items and display them in a list.
Create a document:
$myRssBlock = new RssBlock();
$myRssBlock->setParentDocument($parentPage);
$myRssBlock->setName('rssBlock');
$myRssBlock->setSetting('title', 'Symfony2 CMF news');
$myRssBlock->setSetting('url', 'http://cmf.symfony.com/news.rss');
$myRssBlock->setSetting('maxItems', 3);
$documentManager->persist($myRssBlock);
Todas las opciones disponibles son:
The controller to get the feed items can also be changed:
Nota
El Symfony CMF Sandbox contiene un ejemplo del RssBlock.