Questions tagged [wagtail-admin]
135 questions
0
votes
2 answers
Wagtail hook for richtext editor
I created a wagtail hook for adding a code block from the Richtext editor. The hook is working but I have the problem.
The hook supposed to work like as follows,
content line one
content line two
But when I apply the…
sherin
- 323
- 3
- 10
0
votes
0 answers
Custom Wagtail chooser viewset chosen_view_class is ignored
I have a basic custom ChooserViewSet to add some functionality to returned chosen data and to specify the widget to use. The model associated with the viewset is a registered snippet.
I have specified the chosen_view_class in the viewset with a…

Rich - enzedonline
- 746
- 4
- 10
0
votes
0 answers
Unable to load custom JS via Wagtail ModelAdmin.form_view_extra_js
While following the Wagtail 5.x documentation on ModelAdmin customization, I have created a Wagtail ModelAdmin definition as follows:
class PersonModelAdmin(ModelAdmin):
model = Person
menu_icon = "user"
menu_label = "People"
…

Brylie Christopher Oxley
- 1,684
- 1
- 17
- 34
0
votes
0 answers
Wagtail Image Chooser Template returns 404 http not found
When I deploy my wagtail django with nginx and I want to choose an image for a ForeignKeyField to wagtailimages.Image I get a HTTP 404 for
/cms/images/chooser/ although when I directly access the url it returns the correct json.
Is this a…

N. Ahlers
- 344
- 3
- 8
0
votes
0 answers
Bulk Move operation not working in wagtail 4.2.4
I have recently upgraded my Wagtail from v3.0 to v4.2.4 post which when I am trying to perform a bulk operation of 'Move' on multiple pages, I am getting an error as below
DoesNotExist at /cms/admin/bulk/wagtailcore/page/move/
GenericIndexPage…

rucha
- 1
0
votes
1 answer
MultipleChooserPanel: this.chooserWidgetFactory.openModal is not a function
I upgraded from wagtail 4 to wagtail 5.0.2. When I try to open a MultipleChooserPanel I get the following js error in the browser console:
Uncaught TypeError: this.chooserWidgetFactory.openModal is not a function
MultipleChooserPanel…

N. Ahlers
- 344
- 3
- 8
0
votes
0 answers
How do I set the default admin page theme to light theme in Wagtail?
I am just now trying Wagtail for a project in my company, in Wagtail 5, the dark theme is introduced and became the default theme for the wagtail admin page, this is great for me but I was told that the client wanted it to be light theme.
I know…
0
votes
0 answers
How can I set the permission policy for a custom Image model in Wagtail?
In a Django/Wagtail project, I use a CustomImage model inheriting from Wagtail's AbstractImage/Image model. When I want to set Image permissions for a new group of users, it doesn't work though, because the function set_permission_policy() from the…
0
votes
2 answers
Wagtail customization of admin template for Page Type Model
For example i have model like this and i want to add some button or image to the edit template of this page(Admin interface).I did not find a way how to do this using hooks.I think there must be some solution, otherwise it turns out that the…

Kiyoshi
- 56
- 6
0
votes
1 answer
How to Disable Certain Block Types in Wagtail's StreamField Based on Selected Theme?
In the editor's interface I have a field where the editor can choose a theme for his Page:
Theme field
The theme defines the styles for the blocks created in the StreamField "body" when the Page is served, however there are some themes which do not…

Gregori
- 3
- 2
0
votes
2 answers
Cannot set a sender email address in Django or Wagtail send_mail
The task: There is a website, offering a newsletter. I´m sending a newsletter subscription notification to an email address everytime a subscriber subscribes. For this I use send_mail from wagtail.admin.mail – I think it´s not relevant in which way…

Paul
- 35
- 6
0
votes
1 answer
wagtail cms: how to sort users by last login
I(and my customer) want to sort users in the backend (menu > settings > users) by last login. By default I'm only able to sort by name and by username. What is the best practice to solve that? Also in version 5 I did not found this function.

Andre
- 623
- 2
- 9
- 20
0
votes
1 answer
Save method of custom WagtailAdminPageForm called multiple times, even on page load: How to trigger custom save action only once on save?
I want to automatically generate field content based on another, editor-filled field for a wagtail page model on page save.
I followed the wagtail docs and I am able to populate and save a field programmatically on page save/publish:
from…

tombreit
- 1,199
- 8
- 27
0
votes
1 answer
Django/Wagtail static assets return 404 only when logged in but works logged out
After upgrading Wagtail and supporting packages, I'm having a strange problem where all the static assets (CSS, JS, fonts, etc..) return a 404 error when logged into the Wagtail admin, ie. the sessionid is valid and set in the browser. However, the…

tsyn
- 13
- 3
0
votes
0 answers
On admin page icons are really big after upgrading from wagtail 2.13.2 to 4.2.2
So on the wagtail admin page the icons are really big after upgrading from wagtail 2.13.2 to 4.2.2
I ran collectstatic and cleared the browser cache but that didn't help.

calen
- 21
- 1
- 6