Al-Punk
Al-Punk

Reputation: 3660

Zend Feed Writer And Media RSS (Yahoo)

Attempting to create a feed with Zend_Feed_Writer but need to include images. I checked and such support is offered by Media RSS (Yahoo) and their namespace: http://search.yahoo.com/mrss.

Unfortunately this is not supported by ZendFramework and I am wondering what is the best approach to create such a feed through ZF.

I believe it can be addressed via Extensions but the documentation is poor. Anyone had this need as well?

Upvotes: 1

Views: 524

Answers (1)

Rolando Isidoro
Rolando Isidoro

Reputation: 5114

You can simply create your own Feed_Writer class that extends Zend_Feed_Writer and add methods to support the elements from the Media RSS specifications.

From your tags on your question I'm guessing you're using ZF2, right? Couldn't find an example relating to that version, but here's a good example for creating Custom Feed and Entry Classes on ZF1. It shouldn't be too hard to understand the concept and translate it to ZF2.

Hope this helps, good luck.

Upvotes: 1

Related Questions