Skip to content

Commit

Permalink
Squashed merge of task/GH-310-breadcrumbs at commit f441e67
Browse files Browse the repository at this point in the history
  • Loading branch information
wesleyboar committed Aug 13, 2021
1 parent b9a1a93 commit f09fa40
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
11 changes: 8 additions & 3 deletions taccsite_cms/default_secrets.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,15 @@
# FAQ: First template is default template
# REF: http://docs.django-cms.org/en/latest/how_to/install.html#templates

# Default template with standard and custom (per-project) choices
# NOTE: To have per-project styles, the custom default template is required
# For standard pages (has Container and Breadcrumbs)
('standard.html', 'Standard'),
# For content that spans full window width (no Container, no Breadcrumbs)
('fullwidth.html', 'Fullwidth'),
('example-cms/templates/fullwidth.html', 'Fullwidth (Custom Example)'),

# Any project that needs per-project styles must have a custom template
# FAQ: This is a tedious solution until a cleaner solution is devised
# TODO: Automate per-project asset load and update exisitng sites as needed
# ('name-of-project/templates/fullwidth.html', 'Fullwidth (Custom)'),
# NOTE: If project later uses custom template, then for that project:
# 1. Rename standard default template to "DEPRECATED […]".
# 2. Update all pages to use the custom default template.
Expand Down
1 change: 1 addition & 0 deletions taccsite_cms/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
<!-- This block used regardless. -->
{% block content %}
<div class="container">
{% include "nav_cms_breadcrumbs.html" %}
{% placeholder "content" %}
</div>
{% endblock content %}
Expand Down
4 changes: 4 additions & 0 deletions taccsite_cms/templates/standard.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{% extends "base.html" %}
{% load cms_tags %}

{% block title %}{% page_attribute "page_title" %}{% endblock title %}

0 comments on commit f09fa40

Please sign in to comment.