Skip to content

Conversation

@wesleyboar
Copy link
Member

Overview

Add a command that lists all pages using each template in the CMS, along with their full URLs.

Related

Changes

  • adds management command
  • documents new command
  • improves documentation for management commands

Testing

  1. (if you have no instance) make setup
  2. make start
  3. docker exec -it core_cms sh -c "python manage.py list_page_templates"
  4. (optional) test with multisite
    see feat: support multisite switch via domain name #873

UI

docker exec -it core_cms sh -c "python manage.py list_page_templates"

TEMPLATE: "fullwidth.html"
PAGES:
- Home (https://localhost:8000/)
- Home (https://127.0.0.1:8000/)

TEMPLATE: "standard.html"
PAGES:
- Site 1 News (https://localhost:8000/news/)
- Site 2 News (https://127.0.0.1:8000/news/)
- Site 1 Page (https://localhost:8000/site-1-page/)

TEMPLATE: INHERIT
PAGES:
- Site 2 Page (https://127.0.0.1:8000/site-2-page/)
- Remote Site 1 News (https://127.0.0.1:8000/remote-site-1-news/)

@wesleyboar wesleyboar merged commit 8fbaa28 into main Jul 8, 2025
@wesleyboar wesleyboar deleted the feat/list_page_templates branch July 8, 2025 22:00
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.

2 participants