TACC / Core-CMS

The Core CMS codebase used by TACC Portals.
https://cep.tacc.utexas.edu
2 stars 1 forks source link

feat: cmd-57 allow isolated news feed customizing #752

Closed wesleyboar closed 9 months ago

wesleyboar commented 9 months ago

Overview

Allow a client CMS to customize only the news feed list.

Rather than clone all of `post_list.html`, a cleint can clone and edit just the new `post_loop` block.

Status

Related

Changes

Testing

  1. Have custom CMS with Blog/News installed.
  2. Have sample blog posts.
  3. Add taccsite_custom/tup_cms/templates/djangocms_blog/post_list.html with

    {% extends "djangocms_blog/post_list.html" %}
    
    {% block post_list %}
        {% for post in post_list %}
            <h2>{{ post.title }}</h2>
        {% endfor %}
    {% endblock %}
  4. Load CMS Blog/News page.
  5. Verify news page shows <h2> title for every post, but no other content/data.

UI

Skipped. But would be similar to https://github.com/TACC/Core-CMS/pull/751.

wesleyboar commented 9 months ago

Closed because CMD-57 can not be achieved this way without breaking pagination (limitation discovered in https://github.com/TACC/tup-ui/pull/373).

wesleyboar commented 5 months ago

Superseded by CMD-97.