Add ungleich HTML only template
This commit is contained in:
parent
7fa23577f6
commit
6ec7fc182b
4 changed files with 54 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue