Progress
Summary
A CMS project with a page using a Core template does not load Project's custom assets.
Prerequisites
- Have a CMS project built with custom project assets, like
example-cms (easiest to test¹).
¹ Because it's site.css has a yellow background (as of the creation of this ticket).
Steps
- Create a page (A), and choose the template "Fullwidth" (or whichever loads
example-cms/templates/fullwidth.html).
- Create a page (B), and choose a template "Homepage (for Portal)" or "Guide(: …)".
- Load page (A).
- Load page (B).
Expected Result
- Page (A) does load
example-cms/css/build/site.css.
- Page (B) does load
example-cms/css/build/site.css.
Actual Result
- Page (A) does load
example-cms/css/build/site.css.
- Page (B) does not load
example-cms/css/build/site.css.
Background
This was discovered on https://cep.tacc.utexas.edu/ at the time of creating this ticket.
Direction
Problem:
The {% extends "fullwidth.html" %} code in a project template is not inheriting project fullwidth.html template. Instead, it is inheriting the core fullwidth.html template.
Solution Ideas:
Progress
task/GH-168-update-template-inheritence-with-django-solution↑
Core-CMStask/GH-168-update-template-inheritencemain; redo it off of latestmain↑
Core-CMS-ResourcesGH-168-update-template-inheritenceSummary
A CMS project with a page using a Core template does not load Project's custom assets.
Prerequisites
example-cms(easiest to test¹).Steps
example-cms/templates/fullwidth.html).Expected Result
example-cms/css/build/site.css.example-cms/css/build/site.css.Actual Result
example-cms/css/build/site.css.example-cms/css/build/site.css.Background
This was discovered on https://cep.tacc.utexas.edu/ at the time of creating this ticket.
Direction
Problem:
The
{% extends "fullwidth.html" %}code in a project template is not inheriting projectfullwidth.htmltemplate. Instead, it is inheriting the corefullwidth.htmltemplate.Solution Ideas:
Forsettings.py'sDIRS, instead of listing custom project root, list each custom project's template directory (like is done forsettings.py'sINSTALLED_APPS).APP_DIRSto overwrite from an app's template directory (which is disabled in our code).