Questions tagged [wagtail]
Wagtail is a Django content management system (CMS), focused on flexibility and user experience. When using this tag, you may also want to add the [django] tag to improve visibility.
wagtail
2,396
questions
0
votes
0
answers
12
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
18
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
0
answers
13
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
13
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
16
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
33
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
23
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
42
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
29
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
19
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
35
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
19
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
21
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)
...