Skip to content

feat(djangocms_blog): drop scripts in favor of template overwrites#596

Merged
wesleyboar merged 7 commits intomainfrom
task/blog-post-item-template
Feb 7, 2023
Merged

feat(djangocms_blog): drop scripts in favor of template overwrites#596
wesleyboar merged 7 commits intomainfrom
task/blog-post-item-template

Conversation

@wesleyboar
Copy link
Copy Markdown
Member

@wesleyboar wesleyboar commented Feb 7, 2023

Overview

Clone and edit more templates from https://github.com/nephila/djangocms-blog/blob/1.1.1/djangocms_blog/templates/djangocms_blog/, and remove JavaScript DOM manipulation.

Details

Rather than be so afraid of updates to templates, such that I would rather use JavaScript to change the markup, assume templates rarely change, and that their API—i.e. the context variables—do not change.

Related

Changes

See commits (which are change-specific and polished).

Testing & UI

I tested the changes. I skipped the recording. I am sorry.

Update: Had I recorded testing and UI, I would have caught #597 before merge.

@wesleyboar wesleyboar force-pushed the task/blog-post-item-template branch 5 times, most recently from cdaca97 to db5e7d4 Compare February 7, 2023 04:25
@wesleyboar wesleyboar force-pushed the task/blog-post-item-template branch from db5e7d4 to f0092b0 Compare February 7, 2023 04:26
@wesleyboar wesleyboar marked this pull request as ready for review February 7, 2023 04:32
@wesleyboar wesleyboar merged commit 61279f6 into main Feb 7, 2023
@wesleyboar wesleyboar deleted the task/blog-post-item-template branch February 7, 2023 04:32
wesleyboar added a commit to TACC/tup-ui that referenced this pull request Feb 7, 2023
- change CMS image to one with zero javascript for class names:
    TACC/Core-CMS#596
- reduced open-external-post.html script complexity
jarosenb pushed a commit to TACC/tup-ui that referenced this pull request Feb 7, 2023
* feat(core-cms): TACC_BLOG_SHOW_ABSTRACT_TAG

* feat(tup-cms): TACC_BLOG_SHOW_ABSTRACT_TAG

* feat(tup-cms): TACC/Core-CMS #594 and #581

* feat(tup-cms): blog article url snippets

* chore(tup-cms): rename recent snippet

* fix(tup-cms): blog list external url new window

* fix(tup-cms): blog list external url script bugs

* feat(tup-cms): TACC/Core-CMS#587 w/ #594 from main

* fix(tup-cms): move new snippet script to news/

* fix(tup-cms): redirect snippet bugs

* feat(tup-cms): limit article url trick to a tag

* chore(tup-cms): change abstract tag setting

* fix(tup-cms): no redirect if user is editing

* docs(tup-cms): better comments external link js

* fix(tup-cms): less javascript to open article

- change CMS image to one with zero javascript for class names:
    TACC/Core-CMS#596
- reduced open-external-post.html script complexity

* feat(tup-cms): new js module gets article ext. url

* feat(tup-cms): redirect js auto-finds article url

* fix(tup-cms): redirect js shall not override user

If user says redirect to X, snippet shall not ignore on articles.

* chore(tup-cms): nx format:write
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant