diff --git a/taccsite_cms/settings/settings.py b/taccsite_cms/settings/settings.py index 5a494768f..4758d380b 100644 --- a/taccsite_cms/settings/settings.py +++ b/taccsite_cms/settings/settings.py @@ -563,8 +563,8 @@ def get_subdirs_as_module_names(path): CMS_PERMISSION = True CMS_PLACEHOLDER_CONF = { 'header-content': { - 'plugins': ['PicturePlugin'], - # One plugin with template "Header logo" = logo; any other content = bottom of header + # One PicturePlugin with template "Header logo" = custom logo + # Any other plugins render inline within the header nav 'limits': {'global': 10}, }, } diff --git a/taccsite_cms/templates/djangocms_picture/header_logo/picture.html b/taccsite_cms/templates/djangocms_picture/header_logo/picture.html index b0fa4002e..919f259f9 100644 --- a/taccsite_cms/templates/djangocms_picture/header_logo/picture.html +++ b/taccsite_cms/templates/djangocms_picture/header_logo/picture.html @@ -1,3 +1,3 @@ -{% load header_logo_tags %} +{% load header_content_tags %} {% header_logo_from_picture instance picture_link as plugin_logo %} {% include "header_logo.html" with plugin_logo=plugin_logo %} diff --git a/taccsite_cms/templates/header.html b/taccsite_cms/templates/header.html index 4d48df637..9062397bb 100644 --- a/taccsite_cms/templates/header.html +++ b/taccsite_cms/templates/header.html @@ -1,5 +1,5 @@ {# @var settings #} -{% load cms_tags header_content_tags %} +{% load cms_tags %} {# WARNING: Some markup is duplicated in other repositories #} {# SEE: https://confluence.tacc.utexas.edu/x/LoCnCQ #} @@ -23,13 +23,9 @@ {% endif %} "> - {% get_header_content_parsed "header-content" as header_content %} - {% if header_content.logo_plugin %} - {% header_logo_from_picture header_content.logo_plugin header_content.logo_link as plugin_logo %} - {% include "header_logo.html" with plugin_logo=plugin_logo %} - {% else %} + {% static_placeholder "header-content" or %} {% include "header_logo.html" %} - {% endif %} + {% endstatic_placeholder %}