2,404
questions
0
votes
1
answer
29
views
How to wrap a search function in a class that inherits from wagtail Page?
Is there a way to make a search form using a wagtail template inheriting from Page? Instead of using a simple view.
And how can I render it in the template?
I find it more enriching to be able to use ...
-1
votes
0
answers
38
views
How can we activate the dropdown menu items on the Wagtail Bakerydemo website?
I encountered an issue with the bakerydemo a Wagtail demo site. When clicking on "bread" menu item or its dropdown label, the submenu items did not display, despite marking the "Show in ...
1
vote
0
answers
11
views
Wagtailmenus does not seem to recognize the sub_menu tag in my install
First of all, all of these pages have the "Show in menu" item checked, and in my menu config, it has "Allow 3 levels of sub-navigation" selected. Apologies if I'm being short, but ...
0
votes
0
answers
35
views
Preserve image metadata with Wagtail rendered images
I would like to find a way to preserve some or all of the image metadata when Wagtail generates renditions from the original.
I have found the following reference in the Wagtail documentation about ...
0
votes
1
answer
26
views
how to copy/paste blocks in wagtail(wagtail into existing django project)
i try to understand requirements and know the possible methods and the wagtail project is using wagtail-modeltranslation, here is the requirements:
"Main purpose of this is to speed up making new ...
0
votes
1
answer
18
views
Using Wagtail with the contrib_Table_block doesn't seem to work the same as other fields
I've been following the reference in the wagtail docs on the Table_block contrib setup. The suggested method is to make this an insert to StreamField, which works fine for me for every type of block ...
-1
votes
0
answers
27
views
Wagtail VScode Quick Fix
How to get wagail related suggestions (for example wagtail import statement) in VsCode Quick Fix?
I have tried many ways with no success.
Is there anyone that has Quick Fix working with Wagtail ?
...
-1
votes
0
answers
10
views
confusion during make docker serve static files(configuration issue)
My problem was just to configure my wagtail project settings.py to serve static file correctly and i tried search about this topic but docker + wagtail(wagtail into existed django project) not on ...
0
votes
1
answer
56
views
How to keep datas remain after switch to deocker for deployment(Wagtail into an existing Django project)
let me clear what is going on.......
am working on wagtail project which is comes from ff this steps:
-How to add Wagtail into an existing Django project(https://docs.wagtail.org/en/stable/...
0
votes
0
answers
9
views
Wagtail Migrate DB and S3 images beween DEV and Staging
We are trying to migrate our Wagtail site data from DEV to Staging environments
We have copied the S3 images from DEV to Staging using aws s3 copy
We have dumped the postgres database to a file and ...
0
votes
1
answer
28
views
Splitting StreamBlocks nested inside a StreamField in Wagtail
Background
I'm trying to determine whether this functionality is possible in Wagtail as things stand, or whether I am going to need to add a form widget adapter to handle this.
I have a StreamField on ...
0
votes
0
answers
21
views
In Wagtail, how can you safely delete `PageLogEntry` instances?
I have a Django/Wagtail project that continuously updates Page instances with data retrieved via an external API. I somehow failed to implement a check to update and publish the internal instance only ...
0
votes
1
answer
17
views
Wagtail: How to filter FieldPanel dynamically for ForeignKey values?
I have this Page with a ForeignKey districtobject:
class DistrictPage(Page):
districtobject = models.ForeignKey(DistrictTranslated, on_delete=models.SET_NULL, null=True, blank=True)
...
2
votes
0
answers
26
views
How to Display Total Object Count in Wagtail Snippet ViewSet?
I am currently developing a Wagtail project where I use the ModelAdmin to create custom admin interfaces for my models. When using ModelAdmin, the total object count of a model is displayed below the ...
0
votes
2
answers
33
views
wagtail snippet index page does not show image itself, but show image name
My snippet has a image field. The image is not shown in snippet admin index page.
class Product(ClusterableModel):
name = models.CharField(max_length=255)
image = models.ForeignKey(
&...
0
votes
1
answer
17
views
Custom image model is shown as plain html select in Admin UI
I created a Custom image model to add Attribution to Images. I just followed the Wagtail Documentation for this: https://docs.wagtail.org/en/stable/advanced_topics/images/custom_image_model.html
My ...
0
votes
1
answer
27
views
Add custom field to wagtailadmin ModelAdmin
I'm trying to add a custom field to wagtail ModelAdmin, but not sure how to do that. I tried
from wagtail_modeladmin.options import ModelAdmin, modeladmin_register
from wagtail_modeladmin.views import ...
0
votes
0
answers
19
views
How to restrict available InlinePanel instances that can be choosen in wagtail admin
Let's say we Course and Lesson Wagtail Page models, where Lesson page instances are sub-pages of Course page instance. E.g. "Web Development Course > HTML Lesson". Implemented as:
class ...
0
votes
0
answers
20
views
Wagtail: Limit ChooserViewSet options with linked_fields
I'm using Wagtail's ChooserViewSet to display a widget in the admin form. The widget uses an external API to get available questions. I want to filter these questions by passing a parameter dataset_id ...
0
votes
1
answer
51
views
django.core.exceptions.ValidationError: {'path': ['Page with this Path already exists.']}
I am getting a django.core.exceptions.ValidationError: {'path': ['Page with this Path already exists.']} when attempting to create a new page.
I have the following page tree:
$ from wagtail.models ...
0
votes
1
answer
28
views
Wagtail view with URL params, or multiple custom URLs
I have a calendar that is used in a general Django app, but I also want to show it within the Wagtail app (which shows general text content/blog) for this site.
I have got to the point where I can ...
1
vote
2
answers
48
views
Wagtail/Django Taggit - Unique Tag pool for each set of child pages
For the sake of example, let's say we wanted to create multiple blogs, but in the same app. Each blog has blog posts that are children of each respective blog. Is there away to set up Taggit so that ...
0
votes
1
answer
34
views
Change the content in the main page depending on whether the user is logged in or not
I found out how to edit the homepage and add HTML contents. But I want the content to depend on whether the user is logged in or not (e.g., if the user is not logged in, write "please log in"...
1
vote
0
answers
37
views
Full Text Search with Microsoft SQL Server
I am wondering how I can integrate Wagtail with Microsoft SQL Server. The basic search is working fine, but I would like to perform full text search on custom content.
Basic search endpoint (from ...
0
votes
1
answer
22
views
Case Insensitivity Issue with Tag Suggestions in Wagtail
I'm studying Wagtail and encountered the following issue when setting up tags.
I added the following models:
@register_snippet
class BlogTag(TagBase):
free_tagging = False
name = models....
1
vote
1
answer
44
views
How to specify the ordering of subpages in Wagtail admin
In Wagtail, consider the following page types:
class WorkshopPage(Page):
category = models.ForeignKey(
WorkshopCategory, on_delete=models.SET_NULL, blank=True, null=True
)
class ...
3
votes
0
answers
25
views
Dynamically change the label of an InlinePanel
I have a model with an InlinePanel. Can I change the label that is shown to be a field of the model underneath it, in this case the title of the Artist field, instead of just "Artist 1"?
e.g....
0
votes
1
answer
23
views
Wagtail not saving ParentalManyToManyField
I have a model that looks, simplified like this:
class Partner(ClusterableModel):
name = models.CharField(max_length=255)
class Partnership(Orderable):
name = models.CharField(max_length=255)
...
0
votes
3
answers
62
views
Wagtail CMS in multi languages : How to diplaying 3 latest items in home page
When I create content, I have its equivalent in the languages added to my site in the DB.
So how to display only the last 3 articles of a single language on the home page using "ojects.all()....
0
votes
0
answers
20
views
Does wagtail support dynamical definition of Search and Social Previews or Slug?
Is there any system in wagtail where you can dynamically define Search and Social Previews or Slug. so for example that it goes details/1/ where one would represent certain ID. so it would be details/{...
2
votes
1
answer
52
views
Undoing a migration for a duplicate field
We have had a duplicate field added to of our Django Wagtail models which has confused the migration system.
The following was added to one of the models while back along with a migration that added a ...
0
votes
2
answers
96
views
Ajax live search in header on wagtail/Django
I recently just started learning Python, Wagtail and Django.
There was a need to create a live search in the header of the site, but I just can’t get it to work correctly; as a result of the search, ...
0
votes
0
answers
36
views
Translated and published page doesnt render properly but a default language page published do in wagtail cms
My problem is about how I can render my translated template, because I made a template according to wagtail cms do in the documentation(e.g blogpage page class is converted to blog_page.html as a ...
0
votes
0
answers
43
views
Asynchronous migrations for django/wagtail
I am working with my friends on wagtail school project, we are working at the same time on our project and making different pages at the same time. We would need a asynchronous system for migrations ...
0
votes
1
answer
15
views
How to style the `PageTitleWidget` like the default page title display (when columns are undefined on a `PageListingViewSet`)?
While migrating from ModelAdmin to PageListingViewSet, I've noticed that the default style for page title column is different when defining the PageListingViewSet without columns or adding columns ...
0
votes
0
answers
11
views
How to redirect user back to *ViewSet after creating item via the "Add <ItemType>" action on *ViewSet listing?
I am migrating our content from Wagtail ModelAdmin to the new *ViewSet approach. I notice that the new *ViewSet allows users to define new items via a button along the top saying "Add "
...
0
votes
1
answer
53
views
How to specify `ordering` for Wagtal PageListingViewSet
I'm creating a PageListingViewSet and would like to specify the default ordering in the table view. Previously, the ModelAdmin class (from which I'm migrating our code) allowed me to specify ordering. ...
0
votes
0
answers
35
views
How do I deploy Wagtail CMS to Ionos Standard Web Hosting
I have tried to deploy Wagtail CMS to Ionos Standard hosting using the instructions at How can I deploy Django App to 1and1 (ionos) but I am just getting an internal server error.
Any ideas how I can ...
0
votes
2
answers
44
views
Conditional Caching when Looping Through Blocks in Django
On our site, we are looping through wagtail blocks for many of our webpages. Some of those blocks contain webforms or dynamic/personalized data, and thus cannot be cached. We want to provide maximum ...
0
votes
0
answers
24
views
Reading query string in Wagtail
I am new to Wagtail and I am trying to work out how to extract the query string as part of the FormPage model.
In models.py I tried:
def get_context(self, request):
context = super()....
0
votes
0
answers
22
views
How to integrate wagtail 6.1 with django improved user
I was using django-improved-user with Wagtail (up to Wagtail 6.0) and things were working fairly well. With Wagtail 6.1 now, the user listing page errors out because it is trying to order the listing ...
0
votes
0
answers
24
views
Wagtail: readonly list of models
Is it possible to create a readonly list of models with a custom queryset through a ModelViewSet in Wagtail admin?
I did not find a way in the documentation to specify this.
I could create a seperate ...
0
votes
1
answer
29
views
include in template doesn't accept filter richtext
Two Page-classes have nearly the same structure, so the templates for these classes are also nearly the same. So I put template code into a component and include this code into the templates.
The ...
1
vote
1
answer
20
views
Missing href attribute in links to documents in Wagtail
My Wagtail app (Wagtail 6.1) is configured to manage documents, and I want to include document links via a RichTextField of my page model. The output of the {{ page.body|richtext }} tag is missing a ...
0
votes
1
answer
33
views
Unique constraint violation on auth_user_pkey in Wagtail
I created a user import view (with Django's User model) for a new Wagtail app, which works well. I did a few tests, and ended up with IDs for my test users in the range of 140-150 on my development ...
0
votes
2
answers
26
views
How to "show children" from PageListingViewSet
When creating a Wagtail 6 PageListingViewSet, we are able to add child pages via an action under the ellipsis menu:
That will, in turn, cause an icon to appear next to the title of the page that has ...
0
votes
0
answers
22
views
How can i use test creating a page in wagtail with a complex stream field
I have the following page model on my website
class MyPage(Page):
questions = StreamField(
[
(
"question",
blocks.StructBlock(
...
0
votes
0
answers
21
views
Automatically specify parent page when creating new page instances via ChooserViewSet in Wagtail 6.x
I am working with Wagtail CMS (version 6.1) and have implemented a topic chooser view set to allow selecting and creating topics that are applied to content such as news items. These topics inherit ...
0
votes
0
answers
37
views
Wagtail 6.1 PageListingViewSet: How to automatically select a parent page when creating a new page from PageListingViewSet
I am working with Wagtail CMS (version 6.1) and have implemented a PageListingViewSet to list news items, which inherit from the Wagtail page model. Everything functions correctly, but when I click ...
0
votes
1
answer
38
views
Wagtail, how to render the blocks in a StreamBlock inside a StreamField
I created a number of custom StructBlocks that are available through a StreamBlock like so:
class ContentStreamBlock(blocks.StreamBlock):
sub_heading = SubHeadingBlock()
paragraph = ...