From 46baaaf621107871fd1f3d831ff1db0b4f942872 Mon Sep 17 00:00:00 2001 From: "M.Ravi" Date: Thu, 19 Oct 2017 14:14:29 +0200 Subject: [PATCH] Add section id from cms for services --- ungleich_page/cms_plugins.py | 1 + .../templates/ungleich_page/glasfaser/section_services.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ungleich_page/cms_plugins.py b/ungleich_page/cms_plugins.py index d6035499..a75e0605 100644 --- a/ungleich_page/cms_plugins.py +++ b/ungleich_page/cms_plugins.py @@ -94,6 +94,7 @@ class GlasfaserServicesPlugin(CMSPluginBase): def render(self, context, instance, placeholder): context['service_instance'] = instance + context['section_id'] = get_section_id(instance, 'services') return context diff --git a/ungleich_page/templates/ungleich_page/glasfaser/section_services.html b/ungleich_page/templates/ungleich_page/glasfaser/section_services.html index ae7ef31c..4f2331ef 100644 --- a/ungleich_page/templates/ungleich_page/glasfaser/section_services.html +++ b/ungleich_page/templates/ungleich_page/glasfaser/section_services.html @@ -1,5 +1,5 @@ {% load static i18n cms_tags %} -
+

{{ service_instance.title }}