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
19
cms/cms_plugins.py
Normal file
19
cms/cms_plugins.py
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
from django.utils.translation import gettext_lazy as _
|
||||
|
||||
from cms.models.placeholderpluginmodel import PlaceholderReference
|
||||
from cms.plugin_base import CMSPluginBase
|
||||
from cms.plugin_pool import plugin_pool
|
||||
|
||||
|
||||
class PlaceholderPlugin(CMSPluginBase):
|
||||
name = _("Placeholder")
|
||||
parent_classes = ['0'] # so you will not be able to add it something
|
||||
# require_parent = True
|
||||
render_plugin = False
|
||||
admin_preview = False
|
||||
system = True
|
||||
|
||||
model = PlaceholderReference
|
||||
|
||||
|
||||
plugin_pool.register_plugin(PlaceholderPlugin)
|
||||
Loading…
Add table
Add a link
Reference in a new issue