From db38f2b6d2fc311d732ec67ee442fffd98eeb149 Mon Sep 17 00:00:00 2001 From: Wesley B <62723358+wesleyboar@users.noreply.github.com> Date: Fri, 24 Oct 2025 15:37:30 -0500 Subject: [PATCH] feat: serve page with no header nor footer --- taccsite_cms/settings_custom.example.py | 5 +++-- taccsite_cms/templates/base.html | 4 ++++ taccsite_cms/templates/content.html | 8 ++++++++ 3 files changed, 15 insertions(+), 2 deletions(-) create mode 100755 taccsite_cms/templates/content.html diff --git a/taccsite_cms/settings_custom.example.py b/taccsite_cms/settings_custom.example.py index 853c2adce..b1656b39b 100644 --- a/taccsite_cms/settings_custom.example.py +++ b/taccsite_cms/settings_custom.example.py @@ -28,8 +28,9 @@ ('standard.html', 'Standard'), ('fullwidth.html', 'Full Width'), - # WARNING: Unintuitive, so only enable as needed e.g. TACC/Core-CMS#868 - # ('plain.html', 'Plain'), + # WARNING: Unintuitive, so only enable as needed + # ('plain.html', 'Plain'), # TACC/Core-CMS#868 + # ('content.html', 'Content Only'), # TACC/Core-CMS#___ ) ######################## diff --git a/taccsite_cms/templates/base.html b/taccsite_cms/templates/base.html index 357f57841..20da894c4 100755 --- a/taccsite_cms/templates/base.html +++ b/taccsite_cms/templates/base.html @@ -51,9 +51,11 @@ {% cms_toolbar %} + {% block header %}
{% include "header.html" %}
+ {% endblock header %}
{% block content %} @@ -79,7 +81,9 @@ {% endblock content %}
+ {% block footer %} {% include "footer.html" %} + {% endblock footer %} {% if settings.TACC_CORE_STYLES_VERSION == 0 %} diff --git a/taccsite_cms/templates/content.html b/taccsite_cms/templates/content.html new file mode 100755 index 000000000..046b4393b --- /dev/null +++ b/taccsite_cms/templates/content.html @@ -0,0 +1,8 @@ +{% extends "base.html" %} +{% load cms_tags %} + +{% block header %}{% endblock %} + +{% include 'plain.html' %} + +{% block footer %}{% endblock %}