Add section id from cms for services
This commit is contained in:
parent
502d822a02
commit
46baaaf621
2 changed files with 2 additions and 1 deletions
|
@ -94,6 +94,7 @@ class GlasfaserServicesPlugin(CMSPluginBase):
|
||||||
|
|
||||||
def render(self, context, instance, placeholder):
|
def render(self, context, instance, placeholder):
|
||||||
context['service_instance'] = instance
|
context['service_instance'] = instance
|
||||||
|
context['section_id'] = get_section_id(instance, 'services')
|
||||||
return context
|
return context
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{% load static i18n cms_tags %}
|
{% load static i18n cms_tags %}
|
||||||
<section id="services">
|
<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">{{ service_instance.title }}</h2>
|
<h2 class="section-heading">{{ service_instance.title }}</h2>
|
||||||
|
|
Loading…
Reference in a new issue