From 3afa969206914ad9bc4a6b1a73d03adab09608a5 Mon Sep 17 00:00:00 2001 From: PCoder Date: Sat, 4 May 2019 09:40:09 +0200 Subject: [PATCH] Set the title and header via GET params --- ungleich/templates/cms/ungleichch/_header_base.html | 4 ++-- ungleich/templates/cms/ungleichch/base_ungleich.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ungleich/templates/cms/ungleichch/_header_base.html b/ungleich/templates/cms/ungleichch/_header_base.html index d32f72e6..3a27a503 100644 --- a/ungleich/templates/cms/ungleichch/_header_base.html +++ b/ungleich/templates/cms/ungleichch/_header_base.html @@ -28,9 +28,9 @@ {% endif %} -

{% page_attribute 'page_title' %}

+

{% if request.GET.page_title %}{{request.GET.page_title}}{% else %}{% page_attribute 'page_title' %}{% endif %}


- {% page_attribute 'meta_description' %} + {% if request.GET.page_subtitle %}{{request.GET.page_subtitle}}{% else %}{% page_attribute 'meta_description' %}{% endif %} diff --git a/ungleich/templates/cms/ungleichch/base_ungleich.html b/ungleich/templates/cms/ungleichch/base_ungleich.html index 25fdbdc6..513b8d1e 100644 --- a/ungleich/templates/cms/ungleichch/base_ungleich.html +++ b/ungleich/templates/cms/ungleichch/base_ungleich.html @@ -9,7 +9,7 @@ {% block title %} - {% page_attribute "page_title" %} + {% if request.GET.page_title %}{{request.GET.page_title}}{% else %}{% page_attribute "page_title" %}{% endif %} {% endblock %} {% addtoblock "external-css" %}