Questions tagged [wagtail-admin]
135 questions
1
vote
1 answer
Wagtail CMS(Django) - Display Inline Model Fields in Related Model
I have two custom models(not inheriting from Page) that are specific to the admin in a Wagtail CMS website. I can get this working in regular Django, but in Wagtail I can't get the inline model fields to appear. I get a key error. The code...
On…

Dixan
- 41
- 6
1
vote
1 answer
wagtail 4.0/ How return urls (templates) for preview in admin board from @path
class ProductIndexPage(RoutablePageMixin, Page):
subpage_types = ['ProductPage']
parent_page_types = ['home.HomePage']
def live_categories(self):
all_products_live_id = ProductPage.objects.live().values_list('categories_id',…

Jordano Bruno
- 31
- 2
1
vote
1 answer
Wagtail 4.0.1 Admin/Search not working with Postgres PostgreSQL 12.12 Database
I have this issue related to the pages search, on the admin side of wagtail. This is the Django Error:
ProgrammingError at /admin/pages/search/
function ts_rank(unknown, text, tsquery) does not exist
LINE 1: ...ry"."body") @@…

Diego Portillo
- 103
- 1
- 7
1
vote
1 answer
Wagtail editor not showing editable fields
I’ve got this odd behavior in my local development wagtail editor page. Some of the fields just aren’t showing. There are no HTTP errors and no HTTP 404s but there are some odd errors in the js console.
The editing experience looks like this:
The…

Doug Harris
- 3,169
- 5
- 29
- 31
1
vote
1 answer
Wagtail admin page for different clients
We are in the process of making a UberEat like app and will be using Django for the backend. I discovered wagtail not so long ago and was wondering if it would be possible to use it for our vendors, with each vendor having the possibility to log…

mdc123
- 196
- 1
- 10
1
vote
1 answer
How to make raw text file (to edit robots.txt) editor in Django Wagtail admin
The goal is to create a text file editor within the Wagtail admin site.
Specifically for robots.txt file. I want the admin to update the file from the admin.
How can I do that?

Hatim
- 1,516
- 1
- 18
- 30
1
vote
0 answers
Failed lookup for key [last_published_by_user] in Page <> while trying to run export aging_pages in Wagtail 2.16.2
On the page specified in the error I can see there is a user_id associated with the pageLogEntry table.
Error:
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/wagtail/core/utils.py", line 351, in multigetattr
current…

Vinit Sharswat
- 19
- 5
1
vote
0 answers
Add a custom link/model to wagtail's admin sub-menu
Wagtail documentation explains how to:
Add an item to the admin menu
Add a group/submenu to the admin menu
Let our model be CustomManager and its admin url be /admin/custom_manager/.
Using a hook, we can add a link to our page on to the first…

Zini
- 53
- 7
1
vote
1 answer
Add extra HTML markup to features in Wagtail RichTextField editor?
How can I add extra HTML markup to individual features in Wagtail's RichTextField and have it be stored in the database? Specifically, I need to change the default appearance of a rendered
- list, so it would use custom font icons instead of…

Thegerdfather
- 398
- 4
- 13
1
vote
0 answers
How to add custom (string based) bullet list into wagtail WYSIWYG
I am looking for a way to register a new editor feature to the wagtail WYSIWYG editor.
The following code adds the bullet list to the editor. (It is also built-in).
@hooks.register('register_rich_text_features')
def…

Hatim
- 1,516
- 1
- 18
- 30
1
vote
1 answer
How to create a "save and add another" button and show on Wagtail admin model page
Was wondering if it is possible to add a custom button within a Wagtail model page that will allow me to save (create) the current data fields and move on to another page. The "save and add another" button was already available in django and I want…

Heroo
- 97
- 8
1
vote
1 answer
Why won't a Wagtail TableBlock Display Properly in the Admin?
I'd like to have a TableBlock display in my admin panel, but it isn't displaying properly.
Here are the errors I'm getting:
And here's the code block:
from wagtail.contrib.table_block.blocks import TableBlock
from wagtail.core.blocks import…

Andrii
- 254
- 1
- 3
- 13
1
vote
2 answers
Limiting file types for a specific DocumentChooserBlock() Block in Wagtail Steamfield
I'm trying to limit query results for a specific DocumentChooserBlock inside of a wagtail stream field block.
I already know that you can limit file types for DocumentChooser for a page type by using hooks, but I would like to avoid limiting…

Alex
- 13
- 2
- 3
1
vote
1 answer
Branching Workflows based on value of specified Page field
I have a DailyReflectionPage Model with a reflection_date field that forms the basis for the Page's slug, which is in the form YYYY-MM-DD. Here's an extract of my Page model:
class DailyReflectionPage(Page):
"""
The Daily Reflection Model
…

engineervix
- 345
- 2
- 6
- 17
1
vote
1 answer
In Wagtail is there a way to have a listing/index page list sub pages in a manually specified order without the InlinePanel listing every field?
I want to have a page (/blog/) that lists sub-pages. But I don't want to order them by most recent or anything like that. I want to order them in a manually specified way.
I'd love to use an Orderable on the sub-pages, but the only way I've been…

Chad
- 1,708
- 1
- 25
- 44