Vlax
Vlax

Reputation: 1527

Wagtail customize PageChooserPanel page explorer view

I’m looking for a way to customize the Explorer that pops-up when using the PageChooserPanel, ideally I would like to add two more columns there. I’ve found this http://docs.wagtail.io/en/v2.2/reference/hooks.html#choosers but that only covers generating a custom queryset not adding columns, is that even possible?

Alternatively I can live with only changing the default title shown on the pagechooserpanel explorer but so far adding a __str__ method to the class hasn’t worked

Here a graphic representation to my question

enter image description here

Upvotes: 1

Views: 522

Answers (1)

gasman
gasman

Reputation: 25227

You can customise the displayed title by overriding your page model's get_admin_display_title method:

https://docs.wagtail.io/en/stable/reference/pages/model_reference.html#wagtail.core.models.Page.get_admin_display_title

Upvotes: 2

Related Questions