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
22
cms/test_utils/project/nested_plugins_app/cms_plugins.py
Normal file
22
cms/test_utils/project/nested_plugins_app/cms_plugins.py
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
from cms.plugin_base import CMSPluginBase
|
||||
from cms.plugin_pool import plugin_pool
|
||||
|
||||
|
||||
class PlanetPlugin(CMSPluginBase):
|
||||
"""
|
||||
The contents of this plugin are never rendered.
|
||||
Only render the toolbar entries.
|
||||
"""
|
||||
parent_classes = ['SolarSystemPlugin']
|
||||
render_template = 'nested_plugins_app/planet.html'
|
||||
require_parent = True
|
||||
|
||||
|
||||
class SolarSystemPlugin(CMSPluginBase):
|
||||
allow_children = True
|
||||
render_template = 'nested_plugins_app/solar_system.html'
|
||||
child_classes = ['PlanetPlugin']
|
||||
|
||||
|
||||
plugin_pool.register_plugin(PlanetPlugin)
|
||||
plugin_pool.register_plugin(SolarSystemPlugin)
|
||||
Loading…
Add table
Add a link
Reference in a new issue