Add section id from cms for about
This commit is contained in:
parent
46baaaf621
commit
6322140813
2 changed files with 2 additions and 1 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in a new issue