forked from ungleich-public/dynamicweb
clone cms with menus, make menus standalone app
This commit is contained in:
parent
1ece5ce7c7
commit
afb096b7a3
1153 changed files with 318897 additions and 37 deletions
|
|
@ -0,0 +1,18 @@
|
|||
from django.utils.translation import gettext as _
|
||||
|
||||
from cms.models.pluginmodel import CMSPlugin
|
||||
from cms.plugin_base import CMSPluginBase
|
||||
from cms.plugin_pool import plugin_pool
|
||||
|
||||
|
||||
class ExtraContextPlugin(CMSPluginBase):
|
||||
model = CMSPlugin
|
||||
name = _("Extra Context")
|
||||
render_template = "extra_context_plugin.html"
|
||||
admin_preview = False
|
||||
|
||||
def render(self, context, instance, placeholder):
|
||||
return context
|
||||
|
||||
|
||||
plugin_pool.register_plugin(ExtraContextPlugin)
|
||||
Loading…
Add table
Add a link
Reference in a new issue