Wagtail: Allow to change add child page button text on the page model

Created on 2 Nov 2017  路  3Comments  路  Source: wagtail/wagtail

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".

Enhancement

Most helpful comment

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!!

All 3 comments

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

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!!

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?

Was this page helpful?
0 / 5 - 0 ratings