Media Types/Display: Difference between revisions

From GNU MediaGoblin Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
: I'm currently working on this page
: [[User:Joar|Joar]] 16:29, 22 June 2012 (EDT)

Media type display pages are media type-specific
Media type display pages are media type-specific
[http://jinja.pocoo.org/docs/ Jinja2] templates.
[http://jinja.pocoo.org/docs/ Jinja2] templates.

Revision as of 20:29, 22 June 2012

I'm currently working on this page
Joar 16:29, 22 June 2012 (EDT)

Media type display pages are media type-specific Jinja2 templates.

Configure the media type

The path for the media type display template is configured in the MEDIA_MANAGER object for each media type. The MEDIA_MANAGER is configured in (mediagoblin/)media_types/$MEDIA_TYPE/__init__.py. The path to the template should be relative to the mediagoblin/templates/mediagoblin directory.