mverleg / svsite

Reusable study-organisation website (under development)
http://svsite.readthedocs.org/
Other
0 stars 0 forks source link

Pages outside cms #95

Closed mverleg closed 8 years ago

mverleg commented 8 years ago

This should be easy but it's not. There are instructions here: http://docs.django-cms.org/en/develop/how_to/placeholders.html

But that's not what I need, I need to render a plugin (I'm not sure when you'd want to render a placeholder; it seems just placeholder without render_ is better...). render_plugin seems to be what's needed to achieve what I think the link is trying to do, however that doesn't work without making a model a CMSPlugin or manually adding methods.

It's easy enough to add a CMSPluginBase in cms_plugins.py, then one could add the thing on any page. But I want it to not be added on other pages and to be active automatically in the apphooked page.

(The alternative, just replacing a placeholder by directly rendered html, isn't available because blocks from includes can't be overwritten, and the include is necessary because it's a dynamic theme).

mverleg commented 8 years ago

Solved and documentation added (design_notes.rst).