Media Types/Display: Difference between revisions

From GNU MediaGoblin Wiki
Jump to navigation Jump to search
(Created page with "Media type display pages are media type-specific [http://jinja.pocoo.org/docs/ Jinja2] templates. == Configure the media type == The path for the media type display template is...")
 
No edit summary
Line 7: Line 7:
the {{Cmd|MEDIA_MANAGER}} object for each media type.
the {{Cmd|MEDIA_MANAGER}} object for each media type.
The {{Cmd|MEDIA_MANAGER}} is configured in
The {{Cmd|MEDIA_MANAGER}} is configured in
{{Cmd|(mediagoblin/)media_types/$MEDIA_TYPE/__init__.py}}
{{Cmd|(mediagoblin/)media_types/$MEDIA_TYPE/__init__.py}}.
The path to the template should be relative to the
{{Cmd|mediagoblin/templates/mediagoblin}} directory.

Revision as of 20:28, 22 June 2012

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.