FeedBundle icon indicating copy to clipboard operation
FeedBundle copied to clipboard

Feed reader media items

Open aarsla opened this issue 7 years ago • 2 comments
trafficstars

Is there support for media items in feed reader? Thanks

aarsla avatar Mar 09 '18 21:03 aarsla

Hello @aarsla,

This is not done in the default hydrator but you can create your in order to support it. See: https://github.com/eko/FeedBundle#read-an-xml-feed-and-populate-an-entity

eko avatar Mar 10 '18 13:03 eko

Hey @eko, thank you for a quick response!

I am already using custom hydrator but couldn't find an easy way of extracting media:content and similar tags from feed reader (eko_feed.feed.reader).

My Article class implements ItemInterface and RoutedItemInterface but I need to get media from Zend\Feed\Reader\Feed\FeedInterface $entry defined in public function hydrate(FeedInterface $feed, $entityName).

Any hints appreciated. Thank you!

aarsla avatar Mar 10 '18 18:03 aarsla