Skip to content

Conversation

@2ndkauboy
Copy link
Contributor

What?

This PR introduces a new action gp_after_project_form_fields with developers can use to add additional form fields to GlotPress projects.

Why?

Currently, plugins extending GlotPress need to override the whole template file in order to add additional form fields. This new action would allow them to easily place them after the default fields.

How?

This PR closes #969

When the project form is submitted, the additional form fields can be saved as described in the issue.

Copy link
Member

@akirk akirk left a comment

Choose a reason for hiding this comment

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

In our PR review in the glotpress chat we agreed that this can move forward, we'd just like the $project to be added as a parameter. Thank you!

akirk
akirk previously approved these changes Dec 14, 2022
Copy link
Member

@akirk akirk left a comment

Choose a reason for hiding this comment

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

Ok to merge now.

akirk
akirk previously approved these changes Dec 14, 2022
@akirk akirk merged commit 2888a92 into GlotPress:develop Dec 14, 2022
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.

Make it easier to extend templates

3 participants