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,29 @@
from cms.plugin_base import CMSPluginBase
from cms.plugin_pool import plugin_pool
from .models import Style
class StylePlugin(CMSPluginBase):
model = Style
name = 'Style'
render_template = 'pluginapp/style/style.html'
allow_children = True
fieldsets = (
(None, {
'fields': (
'label',
('class_name', 'tag_type'),
)
}),
('Advanced settings', {
'classes': ('collapse',),
'fields': (
'additional_classes',
),
}),
)
plugin_pool.register_plugin(StylePlugin)