Hello,
the parent/child based restriction for plugins is a bit too much restrictive for my use case.
I have a suggestion but I'm not sure how to implement it. I'd like some guidance on what to modify to achieve what I want.
The idea is to have a required_ancestor to some plugins.
For example in an ecommerce situation you would have a Product plugin that would make available a product model so all sub plugins that it would contain know to what product they are related.
[Page] =>
[Body placeholder] =>
[ProductPlugin Product=5] =>
[Bootstrap container] =>
[Row] =>
[Column] => [ProductImage]
[Column] => [ProductDescription]
That way, ProductPlugin set the context, we are building a page to display product 5.
Then when they are rendered ProductImage and ProductDescription would know what they would need to render (ie image and description for product 5).
ProductPlugin can allow any type of plugin.
ProductImage and ProductDescription need to have a productplugin somewhere but it's not required to have it as a direct parent.
So I'd like to have ProductImage and ProductDescription as available plugins if I clic [+] on the column plugin because there is a ProductPlugin ancestor
but if there is no ProductPlugin ancestor it would not be displayed.
Is somebody working on this kind of feature ?
Can I test/help to make it ?
Best regards,
Frédéric Roland