divio/django-cms — pull request #1094 by thomasnoel (2011-11-21 16:22:58+00:00)
Title: render plugin with by_placeholder/<ph_name>/<template> if exists

* cms/plugin_rendiring.py: proof-of-concept-patch ;)

Usecase : by default, a "teaser" instance is rendered with the
"cms/plugins/teaser.html" template. With this patch, if the "teaser"
instance is inside a placeholder named "sidebar" and if the template
"by_placeholder/sidebar/cms/plugins/teaser.html", this template will be
used to render this plugin instance.