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
|
|
@ -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)
|
||||
Loading…
Add table
Add a link
Reference in a new issue