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
50
cms/test_utils/project/pluginapp/plugins/meta/cms_plugins.py
Normal file
50
cms/test_utils/project/pluginapp/plugins/meta/cms_plugins.py
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
from cms.plugin_base import CMSPluginBase
|
||||
from cms.plugin_pool import plugin_pool
|
||||
|
||||
from .models import (
|
||||
TestPluginModel,
|
||||
TestPluginModel2,
|
||||
TestPluginModel3,
|
||||
TestPluginModel4,
|
||||
TestPluginModel5,
|
||||
)
|
||||
|
||||
|
||||
class TestPlugin(CMSPluginBase):
|
||||
model = TestPluginModel
|
||||
render_template = 'cms/content.html'
|
||||
|
||||
|
||||
plugin_pool.register_plugin(TestPlugin)
|
||||
|
||||
|
||||
class TestPlugin2(CMSPluginBase):
|
||||
model = TestPluginModel2
|
||||
render_template = 'cms/content.html'
|
||||
|
||||
|
||||
plugin_pool.register_plugin(TestPlugin2)
|
||||
|
||||
|
||||
class TestPlugin3(CMSPluginBase):
|
||||
model = TestPluginModel3
|
||||
render_template = 'cms/content.html'
|
||||
|
||||
|
||||
plugin_pool.register_plugin(TestPlugin3)
|
||||
|
||||
|
||||
class TestPlugin4(CMSPluginBase):
|
||||
model = TestPluginModel4
|
||||
render_template = 'cms/content.html'
|
||||
|
||||
|
||||
plugin_pool.register_plugin(TestPlugin4)
|
||||
|
||||
|
||||
class TestPlugin5(CMSPluginBase):
|
||||
model = TestPluginModel5
|
||||
render_template = 'cms/content.html'
|
||||
|
||||
|
||||
plugin_pool.register_plugin(TestPlugin5)
|
||||
Loading…
Add table
Add a link
Reference in a new issue