SHARE
TWEET

Untitled

a guest Jun 25th, 2019 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. {% for block in values %}
  2.   {% if block.block_type == 'features' %}
  3.     {{ block.value.feature.title }}
  4.      
  5. class Features_1_Block(blocks.StructBlock):
  6.     title = blocks.CharBlock()
  7.     description = blocks.TextBlock(required=False)
  8.     features = blocks.StreamBlock([
  9.         ('feature', blocks.StructBlock([
  10.             ('icon', blocks.CharBlock()),
  11.             ('title', blocks.CharBlock()),
  12.             ('description', blocks.TextBlock())
  13.         ]))
  14.     ])
  15.  
  16.     class Meta:
  17.         template = 'streamfield_blocks/features_1.html'
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top