Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2010-02-13 11:17:51
- aba
- Plugin Author
- Registered: 2004-04-14
- Posts: 119
different behavior for container in feed and caching data - how?
1st question
I’ve written a small plugin that creates valid xhtml for video embeds using the object tag.
Unfortunately google reader relies on embed in feeds (and a whitelist of video sites) to show videos in feeds.
Searching through the forum I’ve found two plugins that allow me to replace the body of my articles in my feed using register_callback, but unfortunately that doesn’t solve my problem unless I rewrite the plugin to deal with the whole article instead of just a video link – something I’d like to avoid.
Is there a way to allow a plugin to check the context and change the output to follow that context (e.g. in my case output an embed when called for a feed and the XHTML compliant part when used on page)?
2nd question
Another problem I’m facing is that using oembed or something like videopian seems to be difficult to implement in a textpattern plugin that uses tags, instead of saving the information it will be checked every time the tag is encountered. I haven’t found any good hint how to deal with these – anyone around here who could point me in the right direction?
Thanks
Offline