Skip to content
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

Display page title instead of menu title #194

Merged
merged 2 commits into from
Mar 17, 2022

Conversation

adrien-delhorme
Copy link
Contributor

The default label for select2 items are the Page's __str__ method, which displays the page's menu title.

It happens frequently that several pages share the same menu title: they are therefore indistinguishable from each other.

This pull request displays the page's title instead of the menu title.

Copy link
Sponsor Member

@marksweb marksweb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@adrien-delhorme could you please add an entry in the changelog under an "Unreleased" title for this?

@codecov-commenter
Copy link

codecov-commenter commented Feb 24, 2022

Codecov Report

❗ No coverage uploaded for pull request base (master@2e934cf). Click here to learn what that means.
The diff coverage is 50.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master     #194   +/-   ##
=========================================
  Coverage          ?   93.54%           
=========================================
  Files             ?       22           
  Lines             ?      279           
  Branches          ?       53           
=========================================
  Hits              ?      261           
  Misses            ?       11           
  Partials          ?        7           
Impacted Files Coverage Δ
djangocms_link/fields_select2.py 72.00% <50.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2e934cf...d4196d4. Read the comment docs.

@adrien-delhorme
Copy link
Contributor Author

Sure! (done)

@marksweb
Copy link
Sponsor Member

@adrien-delhorme fantastic, thank you!

@marksweb marksweb merged commit 3afb7e4 into django-cms:master Mar 17, 2022
@adrien-delhorme adrien-delhorme deleted the features/display-page-title branch March 21, 2022 15:55
@adrien-delhorme adrien-delhorme restored the features/display-page-title branch March 21, 2022 15:55
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.

3 participants