⏸️ feat: WP-197 conditional PORTAL_STYLES#880
Closed
wesleyboar wants to merge 5 commits into
Closed
Conversation
22 tasks
wesleyboar
marked this pull request as ready for review
October 2, 2024 00:14
wesleyboar
added a commit
to TACC/Core-CMS-Custom
that referenced
this pull request
Apr 16, 2025
Conditional PORTAL_STYLES: TACC/Core-CMS#880
Member
Author
|
Replaced by #946. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Status
Important
Replaced by:
Overview
Update
PORTAL_STYLESsetting to:page_idonly load on Django CMS page with matching "Id".template_nameonly load on Django CMS page with matching "Template".Why?
Allows a custom CMS on
taccwma/core-cmsDocker image to have page-specific stylesheets (without using a CMS Snippet to load the stylesheet).What's wrong with a Snippet?
Don't complicate the CMS. Just load the Snippet earlier.
Good idea. Less CMS code. All snippets now use "Content" or "Footer" placeholder. I would just add a custom placeholder e.g. "Head". My concerns:
Status
UTRC (minor)data-page-templateonhtml⁉Then use
[data-page-template]and[data-page-id]to scope styles in global stylesheet.feat: data-page-template #946
Related
Changes
PORTAL_STYLESTesting
Edit
settings_local.pyorsettings_custom.py:Create/Edit pages to test these stylesheets.
page_id, set "Id".template_name, set "Template".Verify
<!-- Custom Site Assets: Styles. -->of every page.UI