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

Allow to change add child page button text on the page model #3989

Open
ocobacho opened this issue Nov 2, 2017 · 3 comments
Open

Allow to change add child page button text on the page model #3989

ocobacho opened this issue Nov 2, 2017 · 3 comments

Comments

@ocobacho
Copy link

ocobacho commented Nov 2, 2017

I would be great if the Page model had a property like "add_child_button_text" that could be change if you wanted to display on that button a different text than "ADD CHILD PAGE".

@gasman
Copy link
Collaborator

gasman commented Nov 3, 2017

Thanks for the suggestion @ocobacho! Can you give an example of a situation where you might use this?

@gasman gasman added this to the some-day milestone Nov 3, 2017
@ocobacho
Copy link
Author

ocobacho commented Nov 3, 2017

For example I have a NewsIndexPage that is only allow to have NewsPage as children so I want the button say "Add News" instead of "ADD CHILD PAGE". I think is more intuitive for may users. thanks for the quick reply. Congrats for the great job with Wagtail!!

@brylie
Copy link
Contributor

brylie commented Nov 4, 2018

In case this add_child_button_text property is not added to the Page model, is there a recipe for overriding the text of the 'Add Child Page' button currently?

@gasman gasman removed this from the some-day milestone Mar 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants