--
You received this message because you are subscribed to the Google Groups "SilverStripe Core Development" group.
To post to this group, send email to silverst...@googlegroups.com.
To unsubscribe from this group, send email to silverstripe-d...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/silverstripe-dev?hl=en.
I've implemented an oEmbed consumer. Source code's at http://svn.rentbox.co.nz/public/oembed/trunk/, examples at http://simon.geek.nz/oembed-examples/. I'm assuming the module will be at http://www.silverstripe.org/oembed-module/ when it gets approved :)
There's a simple array of regex -> provider endpoints with values for some of the major providers and it is easy to add to. If the provider is exactly true, then it uses the autodetect mechanism. It's also possible for all URLs to fallback to autodetect if no provider matches. The fallback is disabled by default.
Uses the [embed] shortcode, and displays the URL as a link if no provider is found.
Still got to add things like showing the resulting HTML in an iframe on another domain, only allowing http/s URLs in the HTML and providing text for the fallback link.
---
Simon Welsh
Admin of http://simon.geek.nz/
--
You received this message because you are subscribed to the Google Groups "SilverStripe Core Development" group.
To post to this group, send email to silverst...@googlegroups.com.
To unsubscribe from this group, send email to silverstripe-d...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/silverstripe-dev?hl=en.