Skip to content

feat: new settings for portal to serve/fetch nav#1117

Closed
wesleyboar wants to merge 1 commit intomainfrom
feat/PORTAL_HOSTS_NAV-and-PORTAL_LOADS_NAV
Closed

feat: new settings for portal to serve/fetch nav#1117
wesleyboar wants to merge 1 commit intomainfrom
feat/PORTAL_HOSTS_NAV-and-PORTAL_LOADS_NAV

Conversation

@wesleyboar
Copy link
Member

@wesleyboar wesleyboar commented Mar 11, 2026

Important

Closed in favor of TACC/tup-ui#541.


Overview

Introduces 2 new settings —

  • PORTAL_HOSTS_NAV
  • PORTAL_LOADS_NAV

— to control and distinguish whether portal serves its own nav and/or loads CMS nav.

This change permits TUP-UI to serve a portal nav, while not loading CMS nav bits.

Related

Changes

  • changes these files to use the new settings:
    • urls.py
    • nav_portal.html
    • nav_portal.raw.html
  • adds the enw settings to:
    • settings_local.example.py
    • settings.py
  • keeps support for PORTAL_IS_TACC_CORE_PORTAL

Testing

  1. Verify that nav elements render correctly based on the new settings.
  2. Ensure backward compatibility with existing configurations.

UI

## Overview

Introduces 2 new settings —

* `PORTAL_HOSTS_NAV`
* `PORTAL_LOADS_NAV`

— to control and distinguish whether portal serves its own nav and/or loads CMS nav.

This change permits TUP-UI to serve a portal nav, while not loading CMS nav bits.

## Changes

- Updated `urls.py` to include conditions for rendering navigation based on the new settings.
- Modified `nav_portal.html` and `nav_portal.raw.html` templates to check for the new settings in addition to the existing `PORTAL_IS_TACC_CORE_PORTAL`.
- Added example configurations for the new settings in `settings_local.example.py`.
- Set default values for the new settings in `settings.py`.

## Testing

1. Verify that nav elements render correctly based on the new settings.
2. Ensure backward compatibility with existing configurations.
wesleyboar added a commit to TACC/tup-ui that referenced this pull request Mar 11, 2026
wesleyboar added a commit to TACC/tup-ui that referenced this pull request Mar 11, 2026
@wesleyboar
Copy link
Member Author

Closed in favor of TACC/tup-ui#541.

@wesleyboar wesleyboar closed this Mar 12, 2026
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