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

Fix ability to rename content field #16444

Merged
merged 1 commit into from
Oct 2, 2023
Merged

Conversation

smg6511
Copy link
Collaborator

@smg6511 smg6511 commented Jun 14, 2023

What does it do?

Updated renameLabel method to look for the correct component when specifying a label change for modx-resource-content.

Why is it needed?

The change in MODX 3 to allow TVs to be placed above and below the main content field resulted in the inability to rename the content field’s label via Form Customization (FC) due to the new structure of components.

How to test

Create FC rule for a test template, enter a new Label for the modx-resource-content, and verify the change appears when editing a Resource with that rule applied.

Related issue(s)/PR(s)

Resolves #16441

@smg6511 smg6511 requested review from opengeek and Mark-H as code owners June 14, 2023 13:24
@cla-bot cla-bot bot added the cla-signed CLA confirmed for contributors to this PR. label Jun 14, 2023
@smg6511 smg6511 added the pr/review-needed Pull request requires review and testing. label Jun 14, 2023
@modxcommunity
Copy link
Collaborator

This pull request has been mentioned on MODX Community. There might be relevant details there:

https://community.modx.com/t/is-there-a-way-to-make-a-tv-control-the-title-of-a-resource/6990/7

@rthrash rthrash added this to the v3.0.4 milestone Sep 21, 2023
@smg6511
Copy link
Collaborator Author

smg6511 commented Sep 23, 2023

@SnowCreative - Hi there - If you have a few moments, please pull this down and give it a test. Hopefully we can get this into the next patch release...

@SnowCreative
Copy link
Contributor

@SnowCreative - Hi there - If you have a few moments, please pull this down and give it a test. Hopefully we can get this into the next patch release...

Yes, I tried it and it works just fine.

@rthrash rthrash added pr/ready-for-merging Pull request reviewed and tested and ready for merging. and removed pr/review-needed Pull request requires review and testing. labels Sep 29, 2023
@opengeek opengeek merged commit d041940 into modxcms:3.x Oct 2, 2023
opengeek pushed a commit that referenced this pull request Oct 2, 2023
Co-authored-by: Jim Graham <info@sparkmediagroup.com>
@smg6511 smg6511 deleted the 3.x-issue-16441 branch March 30, 2024 02:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed CLA confirmed for contributors to this PR. pr/ready-for-merging Pull request reviewed and tested and ready for merging.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Custom label for Content field doesn't work in MODX 3
7 participants