Our solution is using dynamic placeholders. We have a requirement to restrict what renderings can be inserted in the page content (under the
content placeholder) and in the sidebar (placeholder
right-sidebar). The restriction should be applied on all nesting levels.
What I'd like to do is make a custom
getPlaceholderRenderings processor which would return allowed renderings of the
content placeholder for every placeholder rendered inside
content. The challenge is in finding out the part of the page the placeholder is being rendered in.