Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feed reader media items #63

Open
aarsla opened this issue Mar 9, 2018 · 2 comments
Open

Feed reader media items #63

aarsla opened this issue Mar 9, 2018 · 2 comments

Comments

@aarsla
Copy link

aarsla commented Mar 9, 2018

Is there support for media items in feed reader?
Thanks

@eko
Copy link
Owner

eko commented Mar 10, 2018

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

@aarsla
Copy link
Author

aarsla commented Mar 10, 2018

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants