From 6322140813ad15cdd23da2df827e2fd12e9a025f Mon Sep 17 00:00:00 2001 From: "M.Ravi" Date: Thu, 19 Oct 2017 14:22:02 +0200 Subject: [PATCH] Add section id from cms for about --- ungleich_page/cms_plugins.py | 1 + .../templates/ungleich_page/glasfaser/section_about.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ungleich_page/cms_plugins.py b/ungleich_page/cms_plugins.py index a75e0605..a5b10d5f 100644 --- a/ungleich_page/cms_plugins.py +++ b/ungleich_page/cms_plugins.py @@ -126,6 +126,7 @@ class GlasfaserAboutPlugin(CMSPluginBase): def render(self, context, instance, placeholder): context['about_instance'] = instance + context['section_id'] = get_section_id(instance, 'about') return context diff --git a/ungleich_page/templates/ungleich_page/glasfaser/section_about.html b/ungleich_page/templates/ungleich_page/glasfaser/section_about.html index e9c811ce..5e3f0410 100644 --- a/ungleich_page/templates/ungleich_page/glasfaser/section_about.html +++ b/ungleich_page/templates/ungleich_page/glasfaser/section_about.html @@ -1,5 +1,5 @@ {% load cms_tags %} -
+

{{ about_instance.title }}