{{extend 'layout.html'}}

{{=response.title or ''}}


Edit ohter page

>> Page2


Edit text

{{@managed_html.content_block('block2', Field('text', comment='Input Text')) def _(content):}} {{=content.text or ''}} {{pass}} {{_()}}

Edit image

{{@managed_html.content_block('block3', Field('image', widget=managed_html.image_widget, comment='Upload Image')) def _(content):}} {{if content.image:}} {{else:}} no-image {{pass}} {{pass}} {{_()}}

Edit html

{{@managed_html.content_block('block1', Field('html', 'text', comment='Input HTML')) def _(content):}} {{=XML(content.html or '')}} {{pass}} {{_()}}


Block Collection

{{@managed_html.collection_block('collection1') def _(collection):}} {{for block in collection:}}
{{=block()}}
{{pass}} {{pass}} {{_()}}