1👍
✅
I would hook the page(s) in question to a Django-CMS app hook. This will cause Django-CMS to retrieve the content for the page, but then hand over processing of the request to your view before the page is rendered. See http://docs.django-cms.org/en/2.4.0/extending_cms/app_integration.html#app-hooks for more information.
This way you can add as many values to the context as you need before your plugins render, assuming you’re using a custom plugin and you’re overriding the render()
method.
Source:stackexchange.com