Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork3.2k
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
PreambelWe should rethink the way how to handle the methods to determine which Plugin is eligible to become a child of another plugin. Currently, when we open the CMS in structure mode, the Placeholder and its attached Plugins know which plugins may be added as children to an existing plugin. This is determined by each plugin through its attributes This static assignment has some drawbacks
Therefore I want to propose a different method to determine which plugins are allowed as children of another plugin. Instead of computing this list staticallybefore the CMS page is rendered, we should add a REST endpoint, which computes this relationship dynamically and based on the current context. This list then is transferred from the server to the client and is used to render a list of possible
This computation can now be much more time consuming. This is because we only have to do it Possible new FeaturesPlugin systems, which map the Bootstrap grid, usually encounter the following problem: A row may be part of a container, and columns may be part of that row. An accordion, carousel, Depending below which of these elements an accordion panel is placed, its own children then This feature would also make it possible to allow plugins depending on the siblings context. Backwards CompatibilitySince we don't need the complicated caching functionality anymore, I even believe that it ImplementationIn case thedjango-CMS community agrees on this proposal, I will implement this feature so |
BetaWas this translation helpful?Give feedback.
All reactions
Replies: 3 comments
-
Hello@jrief, |
BetaWas this translation helpful?Give feedback.
All reactions
-
@fsbraun this was the discussion I was talking about in our biweekly meeting today. |
BetaWas this translation helpful?Give feedback.
All reactions
-
@jrief I see three parts to your proposal.
Regarding the first part, I just wanted to point out the plugin methods At first sight, I have some concerns regarding part two: The plugin tree is a data structure (in the Django model kingdom) that should not depend on the template context (which belongs to Django's template kingdom). The plugins should be able to respond to context on rendering, but the tree structure might be better off being independent of the context. (A change in context would render an existing plugin tree in the database "illegal" and any change made might not be reversible.) One more thought on the complexity of pasting or moving plugins versus adding single plugins:
|
BetaWas this translation helpful?Give feedback.
All reactions
This discussion was converted from issue #6110 on July 26, 2024 20:08.