-
Notifications
You must be signed in to change notification settings - Fork 17
Description
Thanks for this very intuitive and helful tool. The Admin interface visualisation is really sweet.
At my end, I only miss a carousel block, so all media could be linked to one source.
I tried to add a carousel_block I made with Bootstrap5 but failed to retrieve any data in the template.
Since all elements function separately, I assume my problem is how to pass the right varaiables to the template.
I added two blocks with similar functionality to the:
class MyContentBlocks(blocks.StreamBlock):
...
crarousel = blocks.StreamBlock([
('image', ImageChooserBlock()),
('video', EmbedBlock()),
], template='streams/carousel_block.html',)
slider = blocks.ListBlock(ImageChooserBlock(), template='streams/carousel_block.html')
These blocks were then populated in the Admin surface. I could link them with a template, but what I passed to the template didn't retrieve any output.
I tried combinations combingations of block, column, image, block_type, value nothing worked for me.
More than just keep guessing I thought it would be nice to have a better understand of how to do it properly.
Any advise that can help me deepen my understandingand on this issue would be highly appreciated.