Questions tagged [wagtail-snippet]

72 questions
1
vote
1 answer

Wagtail app wagalytics show an 500 Error on console /admin/analytics/token/ 500

Am integrating Wagtail and Google Analytics with the app wagalytics gives me /admin/analytics/token/ 500 () and the settings i used as indicated on the ReadMe GA_KEY_FILEPATH = 'project-6408cf73f290.json' GA_KEY_CONTENT = 'key …
danielmwai
  • 305
  • 1
  • 6
  • 24
1
vote
0 answers

django model for subsite wagtail multisite

I am creating a wagtail instance which includes actually 4 sites: a portal-site and three nearly identical subsites. The subsites contain in the footer a django-form, and within this django-form I want to include a number of date-objects that are…
1
vote
1 answer

How can I add an inline orderable model to a Wagtail Snippet?

I want to be able to add an inline orderable model to a Wagtail Snippet. The code below gives me an error saying that I have to use a ParentalKey for a ClusterableModel. Please advise. @register_snippet @python_2_unicode_compatible class…
NVN
  • 147
  • 2
  • 7
1
vote
2 answers

Snippets not appearing on webpage

I am trying to build a snippet based the Wagtail tutorial here. I have built my snippet in models.py and create a custom template tag in the templatetags folder and connected the snippet to a Page via ForeignKey. I have also created the html…
DDiran
  • 533
  • 1
  • 6
  • 23
1
vote
1 answer

InvalidTemplateLibrary exception when working through Wagtail Documentation on Snippets

I'm following the Wagtail documentation on Snippets to make sure I can get that working before creating my own. But have come across a stumbling block. I have added the model for the adverts in the models.py file and am now creating the demo_tags.py…
1
vote
2 answers

Adding Q Lookup to Wagtail CMS Snippets

I am building out a restaurant website and using Wagtail CMS Snippets for the owner to manage menu items. The list of menu items are getting rather long and I was wondering if there is any way to add a search input field to the Snippets admin…
Charles Smith
  • 3,201
  • 4
  • 36
  • 80
1
vote
1 answer

Carousel Model Definition or Block

What is the difference in these two implementations of creating a carousel? They both seem to do the same thing, however one has Foreign Keys explicitly defined. The first implementation can easily be plugged in by calling it, meanwhile the second…
0
votes
2 answers

Re-using wagtail page field in a snippet like way

Here's what I'm looking to do: create a horizonal scroll of images/logos which scroll across the foot of the screen on most of a sites pages - a marquee, tickertape something like that.. I'm okay with the CSS/html I have that working, the issue is…
churcht
  • 1
  • 1
0
votes
0 answers

Any way to use CRUD in Wagtail(Django) without reload page?

I'm talking about a table with data from a model (like Django). So that the visitor can make changes to the table fields without reloading the page. The description of the framework shows several options for developing such a solution in…
0
votes
1 answer

Migrating wagtail snippet model into page model

I'm wanting to convert an existing snippet model into a page model, along with migrating all existing data from the snippet model. Is there a way to do this without having to manually convert the data/ create a script to generate pages from the…
Alex
  • 1
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…
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

Wagtail CMS Layout

I want to create (or use) different layouts in Wagtail CMS. Such as HEADER left-content-right FOOTER HEADER left-content FOOTER HEADER content-right FOOTER I want to create a page. Then select a layout for this page. Last, I want to assign…
fdas
  • 113
  • 1
  • 1
  • 8
0
votes
1 answer

How to get snippet admin URL

I'm trying to get the admin snippet URL for an object, for example, I have products listed as snippets and one of their URL's is: http://localhost:8000/admin/snippets/blog/blogproduct/edit/18/ I would like to programmatically get that, for…
squidg
  • 451
  • 6
  • 17
0
votes
1 answer

Wagtail adding ParentalManyToManyField relationship on save()

I'm trying to add a ParentalManyToManyField relationship on save() and when I print it looks good but it doesn't seem to save for some reason. Example code: # Models class BlogProduct(models.Model): product_id = models.CharField(max_length=10,…
squidg
  • 451
  • 6
  • 17