{% extends "content/pages/_edit/layout" %} {% set tab = 'blocks' %} {% set page = blx.pages.getPageById(pageId) %} {% if not page %}{% exit 404 %}{% endif %} {% set content %} {% include "_includes/blockindex" with { blocks: blx.pages.getBlocksByPageId(page.id), settingsUrlPrefix: 'content/pages/' ~ page.id ~ '/blocks/', controller: 'pages' } only %} {% endset %}