Skip to content

Conversation

@wesleyboar
Copy link
Member

@wesleyboar wesleyboar commented Aug 4, 2022

Status

Better solution expected via FP-1770.

Overview

Support publication listing page (for APCD) via semi-automatic Pagination solution:
Django CMS - Admin Guide - Pagination

To Do

  • style updates (see "To Do" of TACC/Core-Styles#37)
  • consider whether to separate pagination from publications styles

Related

Changes

  • feat: patterns .c-publication-preview, .c-tag, and .c-tag-list
  • feat: snippet for manual pagination (managed by admin)
  • feat: template tag site_uri can return page slug

Testing

Setup

Remote Server

https://apcd-qa.tacc.utexas.edu/publications/

Local Setup
  1. Use solution A or B from Locally Develop CMS Styles.
  2. Run the Core CMS.

User

  1. Pagination buttons work.
  2. Pagination links work.
  3. "Previous" link is disabled on first page.
  4. "Next" link is disabled on last page.
  5. Redirect works from Publications root page to first page.
  6. Redirect works from Publications "Pages" page root to first page.

Admin

  1. Add a new page e.g. "6".
    • You may copy page "5".
    • If someone else is testing, you may need to add page " 7".
  2. Edit Snippet "Pagination: Publications".
    • On each page, it is at the bottom within the "Row" and "Column".
    • Edit Snippet once to update all pages.
    • Change "1 2 3 4 5" to "1 2 3 4 5 6".
    • If someone else is testing, you may need to add " 7".
  3. Smoke test pagination as a user.

UI

Remote

https://apcd-qa.tacc.utexas.edu/publications/

Local
page 1 page 2 page 5
FP-1726 - Page 1 FP-1726 - Page 2 FP-1726 - Page 5

wesleyboar added a commit to TACC/Core-CMS-Custom that referenced this pull request Aug 4, 2022
wesleyboar added a commit to TACC/Core-CMS-Custom that referenced this pull request Aug 4, 2022
@wesleyboar wesleyboar changed the base branch from main to task/fp-1499-ui-pattern-demo August 8, 2022 15:14
wesleyboar added a commit to TACC/Core-CMS-Custom that referenced this pull request Aug 8, 2022
Note: This mirrors 54f5bd5, whose GitHub actions failed.
TACC/Core-CMS#532
1. Add a snippet.
2. Set the template path to this snippet.
3. In HTML field, enter a list of space-delimited numbers.*

* No newlines, other punctuation, excess start/end whitespace.
wesleyboar added a commit to TACC/Core-CMS-Custom that referenced this pull request Aug 8, 2022
@wesleyboar wesleyboar marked this pull request as ready for review August 8, 2022 20:35
@wesleyboar wesleyboar added the paused Started but not actively in progress label Aug 16, 2022
Base automatically changed from task/fp-1499-ui-pattern-demo to main August 16, 2022 19:17
@wesleyboar wesleyboar closed this Oct 12, 2022
@wesleyboar
Copy link
Member Author

Revisit better solution via FP-1770.

@wesleyboar wesleyboar deleted the task/fp-1499-ui-pattern-demo--fp-1726-publications-list branch November 5, 2022 01:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

paused Started but not actively in progress

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants