django-oembed 0.1.2

A collection of Django tools which make it easy to change text filled with oembed links into the embedded objects themselves
LICENSE TYPE:
BSD License 
USER RATING:
UNRATED
  0.0/5
DEVELOPED BY:
Eric Florenzano
HOMEPAGE:
django-oembed.googlecode.com
CATEGORY:
ROOT \ Internet \ HTTP (WWW)
django-oembed contains a collection of Django tools which make it easy to change text filled with oembed links into the embedded objects themselves.

HowToUseIt

Of course, first you must add it to your INSTALLED_APPS:

INSTALLED_APPS = (
 ....
 'oembed',
)


Then in your template, include the oembed tags

{% load oembed_tags %}

Then, surround something with the oembed tag. It will search for oembed-able links and replace them with the proper embed:

{% oembed %}
There is this great video at http://www.viddler.com/explore/SYSTM/videos/49/
{% endoembed %}


Will result in:

There is this great video at < object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="320" height="222" id="viddlerplayer-e5cb3aac" >< param name="movie" value="http://www.viddler.com/player/e5cb3aac/" /> < param name="allowScriptAccess" value="always" / >< param name="allowFullScreen" value="true" / >< embed src="http://www.viddler.com/player/e5cb3aac/" width="320" height="222" type="application/x-shockwave-flash" allowScriptAccess="always" allowFullScreen="true" name="viddlerplayer-e5cb3aac" >< /embed >< /object >

There is an optional width and height parameter, that can be invoked thusly:

{% oembed 320x240 %}...{% endoembed %}

Last updated on April 21st, 2010

requirements

#embedded objects #link changer #Django plugin #Django #embedded #oembed #link

  Add it to your Download Basket!

 Add it to your Watch List!

0/5

Rate it!
send us
an update

Add your review!

SUBMIT