e.g.:
CMS_PLACEHOLDER_CONF = {
"content": {
"name": _("Content"),
"plugins": ["FooPlugin"],
},
}
#...
class FooPlugin(CMSPluginBase):
allow_children = True
child_classes = ["BarPlugin"]
The user can only add FooPlugin to the "content" placeholder. That's ok.
But after adding FooPlugin, he can add the BarPlugin as FooPlugin child ...
I expected that adding the child would not work and the plugin list doesn't contain the BarPlugin because it's not in the CMS_PLACEHOLDER_CONF["content"]["plugins"]
Is this a bug or "by design" ?
If this is "by design" than a note should be added to the docs [1], isn't it?
[1] http://docs.django-cms.org/en/latest/reference/configuration.html#cms-placeholder-conf
This is a bug.
The list in "plugins" applies to all plugins, regardless of tree position.
Which cms version are you using?
Ah ok. Thanks for the feedback!
A bug? It's exactly the behaviour I want :(