clone cms with menus, make menus standalone app

This commit is contained in:
bruks 2026-09-30 15:27:04 +01:00
commit afb096b7a3
1153 changed files with 318897 additions and 37 deletions

View 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)