-
Notifications
You must be signed in to change notification settings - Fork 32
Open
Description
In the process of trying to replicate this Issue, had a few problem in following the steps in the documentation
eg: DJANGOCMS_FRONTEND_THEME = djangocms_frontend fails
this path DJANGOCMS_FRONTEND_THEME = "theme" works
another eg:
{% load cms_tags sekizai_tags static %}{% spaceless %}
<{{ instance.tag_type }}{{ instance.get_attributes }}
{% if instance.background_opacity and not instance.image %}
{% if instance.container_blur %}
backdrop-filter: blur({{ instance.container_blur }}px);
{% endif %}"
{% endif %}>
{% if instance.image %} supposed to be instance.container_image
<div class="image"
style="background-image: url('{{ instance.image.url }}'); ## instance.container_image.url
background-position: {{ instance.image_position|default:'center center' }};
background-repeat: no-repeat;background-size: cover;
{% if instance.container_blur %}
filter: blur({{ instance.container_blur }}px);
{% endif %}">
</div>
{% elif instance.container_image %}
<div class="image placeholder placeholder-wave"></div>
{% endif %}
{% if bg_color %}
<div class="cover {{ bg_color }}"{% if instance.background_opacity %}
style="opacity: {{ instance.background_opacity }}%"{% endif %}></div>
{% endif %}
{% if instance.container_image %}
<div class="content">
{% endif %}
{% for plugin in instance.child_plugin_instances %}
{% render_plugin plugin %}
{% endfor %}
{% if instance.container_image %}</div>{% endif %}
</{{ instance.tag_type }}>{% endspaceless %}
{# Only add if the css is not included in your site's global css #}
{% addtoblock 'css' %}
<link rel="stylesheet" href="{% static 'css/background_image.css' %}">
{% endaddtoblock %}Metadata
Metadata
Assignees
Labels
No labels