Add ungleich HTML only template

This commit is contained in:
M.Ravi 2017-11-23 13:02:08 +01:00
commit 6ec7fc182b
4 changed files with 54 additions and 1 deletions

View file

@ -5,7 +5,7 @@ from .models import (
UngelichContactUsSection, UngelichTextSection, Service, ServiceItem,
About, AboutItem, SectionWithImage, UngleichServiceItem, UngleichHeader,
UngleichHeaderItem, UngleichProductItem, UngleichProduct, UngleichCustomer,
UngleichCustomerItem
UngleichCustomerItem, UngleichHTMLOnly
)
@ -274,3 +274,18 @@ class UngleichCustomerItemPlugin(CMSPluginBase):
)
context['instance'] = instance
return context
@plugin_pool.register_plugin
class UngleichHTMLPlugin(CMSPluginBase):
name = "ungleich HTML Plugin"
model = UngleichHTMLOnly
render_template = "ungleich_page/ungleich/html_block.html"
cache = False
def render(self, context, instance, placeholder):
context = super(UngleichHTMLPlugin, self).render(
context, instance, placeholder
)
context['instance'] = instance
return context