diff --git a/cms/envs/common.py b/cms/envs/common.py index 258d72994c93..99c1e98a1069 100644 --- a/cms/envs/common.py +++ b/cms/envs/common.py @@ -701,6 +701,7 @@ # Detects user-requested locale from 'accept-language' header in http request 'django.middleware.locale.LocaleMiddleware', + 'openedx.core.djangoapps.plugins.middleware.ViewNameAndSlotMiddleware', 'codejail.django_integration.ConfigureCodeJailMiddleware', # catches any uncaught RateLimitExceptions and returns a 403 instead of a 500 diff --git a/cms/templates/base.html b/cms/templates/base.html index dacdb55a7105..bde2ed2f4a9e 100644 --- a/cms/templates/base.html +++ b/cms/templates/base.html @@ -14,6 +14,7 @@ from openedx.core.djangolib.js_utils import ( dump_js_escaped_json, js_escaped_string ) +from openedx.core.djangoapps.theming.templatetags.plugin_slot import plugin_slot from openedx.core.djangolib.markup import HTML from openedx.core.release import RELEASE_LINE %> @@ -75,9 +76,13 @@ <%include file="widgets/segment-io.html" /> <%block name="header_extras">%block> + ## xss-lint: disable=mako-invalid-html-filter + ${plugin_slot(context, 'studio.djangoapp', 'head-extra') | n}
+ ## xss-lint: disable=mako-invalid-html-filter + ${plugin_slot(context, 'studio.djangoapp', 'body-initial') | n} <%block name="view_notes">%block> ${_("Skip to main content")} @@ -169,5 +174,7 @@ %block> <%include file="widgets/segment-io-footer.html" /> + ## xss-lint: disable=mako-invalid-html-filter + ${plugin_slot(context, 'studio.djangoapp', 'body-extra') | n}