Skip to content

fix: Show pages titles using fallback languages in pagetree #7955

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 17, 2024

Conversation

fsbraun
Copy link
Member

@fsbraun fsbraun commented Jul 11, 2024

Description

In django CMS 3.x the page tree only showed page titles in the current admin language. In django CMS 4 the language of the page tree can be selected using a drop down. If there is no page content object for the page in the selected language "Empty" is shown as a page title. Fallback languages are ignored:

image

To improve usability and allow a user to identify pages, this PR falls back to available languages and indicates the language in brackets:

image

Related resources

  • Migrating a website to django CMS 4 with @MacLake
  • #...

Checklist

  • I have opened this pull request against develop-4
  • I have added or modified the tests when changing logic
  • I have followed the conventional commits guidelines to add meaningful information into the changelog
  • I have read the contribution guidelines and I have joined the channel #pr-reviews on our Discord Server to find a “pr review buddy” who is going to review my pull request.

@fsbraun fsbraun requested a review from marksweb July 11, 2024 15:16
@fsbraun fsbraun added the needs to be backported Commits need to be backported label Jul 11, 2024
@fsbraun fsbraun merged commit 302c1b5 into django-cms:develop-4 Jul 17, 2024
32 checks passed
@fsbraun fsbraun deleted the fix/page-tree branch September 4, 2024 09:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs to be backported Commits need to be backported
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants