Add section id from cms in the contact us section

This commit is contained in:
M.Ravi 2017-10-19 14:05:17 +02:00
commit 502d822a02
3 changed files with 11 additions and 3 deletions

View file

@ -44,6 +44,14 @@ class SectionContact(CMSPluginBase):
render_template = "ungleich_page/glasfaser/section_contact.html"
cache = False
def render(self, context, instance, placeholder):
context = super(SectionContact, self).render(
context, instance, placeholder
)
context['instance'] = instance
context['section_id'] = get_section_id(instance, 'contact')
return context
@plugin_pool.register_plugin
class SectionTextParagraphDCL(CMSPluginBase):