Change theme:   


Loads specific types of objects and assigns them into a variable that is accessible in template. Valid types of objects are:
  • mediaset - returns first mediaset found by attributes or no object when it cannot find any.
  • mediasets - returns list of mediasets found by the attributes or empty list if none match.


Find mediaset by title and assign it to variable named my_gallery.

{% load mediaset to "my_gallery" title="Foobar" %}
<h2>{{ my_gallery.title }}</h2>
{% for photo in %}<img src="{{photo.medium_thumbnail_url}}" alt="" />{% endfor %}