models: UngleichPage, -image_header +image
The filed image_header was removed, and a new filed image was added, the reason for this change is that image being a FilerImageFiled can make use of previously uploaded images while with image_header only uploads where available. Signed-off-by: rscnt <rascnt@gmail.com>
This commit is contained in:
parent
02b52b1cf1
commit
d9883cc503
4 changed files with 45 additions and 2 deletions
|
|
@ -3,7 +3,7 @@
|
|||
<!-- Set your background image for this header on the line below. -->
|
||||
<header class="intro-header"
|
||||
{% if request.current_page.ungleichpage %}
|
||||
style="background-image: url('{{ request.current_page.ungleichpage.image_header.url }}');"
|
||||
style="background-image: url('{{ request.current_page.ungleichpage.image.url }}');"
|
||||
{% else %}
|
||||
style="background-image: url('{% static 'blog.ungleich.ch/img/home-bg.jpg' %}');"
|
||||
{% endif %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue