Add section id from cms for about

This commit is contained in:
M.Ravi 2017-10-19 14:22:02 +02:00
parent 46baaaf621
commit 6322140813
2 changed files with 2 additions and 1 deletions

View file

@ -126,6 +126,7 @@ class GlasfaserAboutPlugin(CMSPluginBase):
def render(self, context, instance, placeholder): def render(self, context, instance, placeholder):
context['about_instance'] = instance context['about_instance'] = instance
context['section_id'] = get_section_id(instance, 'about')
return context return context

View file

@ -1,5 +1,5 @@
{% load cms_tags %} {% load cms_tags %}
<section id="about"> <section id="{{section_id}}">
<div class="container"> <div class="container">
<div class="text-center wow fadeInDown"> <div class="text-center wow fadeInDown">
<h2 class="section-heading">{{ about_instance.title }}</h2> <h2 class="section-heading">{{ about_instance.title }}</h2>