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

Remove duplicate "content" id #84

Merged
merged 3 commits into from
May 23, 2024
Merged

Remove duplicate "content" id #84

merged 3 commits into from
May 23, 2024

Conversation

szakitibi
Copy link
Contributor

There is a duplicate <article id="content">` introduced with the controlpanel.

<article id="content"
metal:fill-slot="prefs_configlet_main"
tal:define="
records view/records;
"
>

The main_template.pt already has one - see https://github.com/plone/Products.CMFPlone/blob/6.0.11/Products/CMFPlone/browser/templates/main_template.pt#L85.

As a result there is two <article id="content"> for portal_registry controlpanel - view source for https://classic.demo.plone.org/portal_registry.

The problem can be eliminated by changing the id, or using a simple metal tag to fill the slot.

@mister-roboto
Copy link

@szakitibi thanks for creating this Pull Request and helping to improve Plone!

TL;DR: Finish pushing changes, pass all other checks, then paste a comment:

@jenkins-plone-org please run jobs

To ensure that these changes do not break other parts of Plone, the Plone test suite matrix needs to pass, but it takes 30-60 min. Other CI checks are usually much faster and the Plone Jenkins resources are limited, so when done pushing changes and all other checks pass either start all Jenkins PR jobs yourself, or simply add the comment above in this PR to start all the jobs automatically.

Happy hacking!

@szakitibi
Copy link
Contributor Author

szakitibi commented May 9, 2024

The same duplicate id is also present in other default Plone controlpanels:

  • Products/CMFPlone/controlpanel/browser/usergroups_groupsoverview.pt
  • Products/CMFPlone/controlpanel/browser/usergroups_groupmembership.pt
  • ...

See plone/Products.CMFPlone#3964.

Copy link
Sponsor Member

@davisagli davisagli left a comment

Choose a reason for hiding this comment

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

@szakitibi Thanks, this fix looks good, but there are 2 things missing before it is ready to merge:

  1. Run tox -e format to autoformat the file using zpretty
  2. Add an entry for the change log (see https://6.docs.plone.org/contributing/index.html#change-log-entry)

@mister-roboto
Copy link

Tibor Szakmany your emails are not known to GitHub and thus it is impossible to know if you have signed the Plone Contributor Agreement, which is required to merge this pull request.

Learn about the Plone Contributor Agreement: https://plone.org/foundation/contributors-agreement How to add more emails to your GitHub account: https://docs.github.com/en/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-email-preferences/adding-an-email-address-to-your-github-account

@davisagli
Copy link
Sponsor Member

@jenkins-plone-org please run jobs

Copy link
Sponsor Member

@davisagli davisagli left a comment

Choose a reason for hiding this comment

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

Thanks!

@davisagli davisagli merged commit 1189b15 into plone:master May 23, 2024
12 of 14 checks passed
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.

None yet

3 participants