Questions tagged [wagtail-streamfield]

Wagtail-streamfield is the feature of Wagtail which let you create a sequence of blocks of different types to be rearranged as desired. Build and arrange your content blocks in any order: headings, paragraphs, images, video, and custom content types specific to your site.

Wagtail is a CMS for Django. Wagtail comes up with lots of features and wagtail-streamfield is one of it. It allows a user to build and arranges content blocks in any order: headings, paragraphs, images, video, and custom content types specific to a site. enter image description here

The outstanding characteristic of it is "Better Rich Text", "Classy Implementation","Simple Editing","Content economy".

170 questions
0
votes
1 answer

Wagtail StreamField not rendering in template after INSERT new row

I have a CMS based on wagtail, and have recently re-written it in a more sensible fashion. I have written a script to migrate the old content to this new version, which is based on wagtail 2.3 (old version was on wagtail 1.11). I have written the…
Liz
  • 1,421
  • 5
  • 21
  • 39
0
votes
1 answer

In wagtail , Streamforms is not rendering the content of the form

I have installed wagtail Streamforms package latest release and wagtail 2.0 , but when I created the form using it and the form content is not showning with the default form template and when I defined a custom template …
0
votes
1 answer

Formatting a Streamfield image block

I want to specify the HTML for each streamfield block with a for loop in my template. However, the image part is getting complaints, and I'm sure I'm not doing it the right way. Invalid block tag on line 15: 'image', expected 'elif', 'else' or…
user3459805
  • 141
  • 1
  • 12
0
votes
1 answer

Wagtail, StreamField renders admin text editor labels in the template

I've got a snippet which has an HTML editor. @register_snippet class GalleryCategory(models.Model): text_links = StreamField( [('text', DemoStreamBlock())], null=True, blank=True) panels = [ …
Henry Lynx
  • 1,099
  • 1
  • 19
  • 41
0
votes
1 answer

Missing Wagtail Streamforms Migrations Breaking Heroku Deployments

I'm not able to deploy to Heroku because of a "models have changes that are not yet reflected in a migration" message. My application migrations are current. The problem is that, for some reason, a migration for the wagtailstreams package in the…
Cleverlemming
  • 1,310
  • 1
  • 8
  • 10
0
votes
0 answers

ChoiceBlock consisting of other Wagtail blocks?

I'm trying to construct the carousel model: class Carousel(blocks.StructBlock): heading = blocks.CharBlock(required=False) carousel = blocks.ListBlock( blocks.StructBlock([ ('slide', blocks.StreamBlock([ …
NarūnasK
  • 4,564
  • 8
  • 50
  • 76
0
votes
1 answer

ParentalKey is not rendered within the StructBlock

I'm trying to create a custom StructBlock which I wanna use inside the StreamField. Here in the StructBlock I have 4 fields, namely: background_style title image category That's my code: from django.db import models from…
NarūnasK
  • 4,564
  • 8
  • 50
  • 76
0
votes
2 answers

Access StructBlock in a StreamField of a Page.get_children in Wagtail

I try to render a StreamField of a child page in a Page. I don't manage to render the different StructField within the StreamField. Here is my code class DefinitionPage(Page): body = StreamField([ ('definition', blocks.StructBlock([ …
Zogsha
  • 63
  • 6
0
votes
1 answer

StreamField – TypeError: 'bool' object is not iterable

Build: Wagtail CMS(1.13.1) with Django(1.11) in python3.6. I am trying to create a pretty basic Streamfield block(CardBlock), but keep getting a type error. It is very similar to the examples in documentation, but I can not get it to work... class…
Tcard2
  • 43
  • 7
0
votes
0 answers

Howto customize the editing interface for a subclassed `StructBlock` in a `StreamField`

I have a wagtail project which utilize the sites framework and having a single page as homepage for each site. These homepages do not (necessarily) need child pages; their content is build from various streamfield StructBlocks. Each of these…
tombreit
  • 1,199
  • 8
  • 27
0
votes
1 answer

Wagtail: How to filter text in streamfield within model.py

I would like to write a filter which replaces some $variables$ in my streamfield text. What is the best way to do this in my "Page" model? I tried the following but it is sometimes not working if I save my model as draft and publish it afterwards.…
Philipp S.
  • 827
  • 17
  • 41
0
votes
1 answer

StreamFieldPanel too small

Is there a way to stop the admin panels from getting so small? I have elements nested 3 layers deep, and that 3rd layer is just so narrow. I understand the indentation on the left, but there is so much wasted space on the right.
jeffreyb
  • 143
  • 11
0
votes
1 answer

Wagtail: How does one define a custom Block's js_initializer so that subblocks' js_initializers also run?

I originally asked this question on the wagtail issue queue, which I guess was the wrong place for it. (Though I do think this is a bug in the documentation.) Anyway, my issue is that I have a custom StructBlock class that uses a ListBlock inside…
coredumperror
  • 8,471
  • 6
  • 33
  • 42
0
votes
2 answers

Is there any way to check if a ListBlock is empty in a template?

Is there any way to check if a ListBlock is empty in a template (i.e. no child blocks)? Just doing: {% if value.some_list_block_field %} doesn't work.
Mark Horgan
  • 3,243
  • 4
  • 27
  • 28
0
votes
2 answers

Get All StreamField Blocks of Specific Type

I have created a custom photoBlock to embed photos in a blog post. I am trying to create a template tag that would allow me to get every photoBlock that is stored in the database, almost like you query pages in Wagtail. I would prefer not to have to…
1 2 3
11
12