Skip to content

feat: serve page with no header nor footer#1012

Merged
wesleyboar merged 1 commit into
stablefrom
feat/serve-page-with-no-header-nor-footer
Oct 24, 2025
Merged

feat: serve page with no header nor footer#1012
wesleyboar merged 1 commit into
stablefrom
feat/serve-page-with-no-header-nor-footer

Conversation

@wesleyboar

@wesleyboar wesleyboar commented Oct 24, 2025

Copy link
Copy Markdown
Member

Overview

Allow serving a page with no header and no footer.

Changes

  • adds template content.html
  • adds blocks header and footer
    so they can be emptied by the new template

Testing

  1. In settings_custom.py or settingslocal.py, add:
    CMS_TEMPLATES = (
        ...
        ('content.html', 'Content Only'),
    )
  2. Open any page that has content.
  3. Append ?template=content.html&toolbar_off to the URL.
  4. Verify page header and page footer are not shown.

UI

normal URL ?template=content.html
baseline test

@wesleyboar wesleyboar merged commit 2f5e03a into stable Oct 24, 2025
@wesleyboar wesleyboar deleted the feat/serve-page-with-no-header-nor-footer branch October 24, 2025 20:48
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