I'm using {% block content %}
and a main layout file.
When using live preview the "entire" frame isn't shown (including layout files).
Is there an easy way to get the whole template in?
Craft CMS Stack Exchange is a question and answer site for administrators, end users, developers and designers for Craft CMS. It only takes a minute to sign up.
Sign up to join this communityI'm using {% block content %}
and a main layout file.
When using live preview the "entire" frame isn't shown (including layout files).
Is there an easy way to get the whole template in?
The problem was my attempt to ajaxify the page.
I had my block content wrapped around
{% if not craft.request.isAjax %}
the page also gets loaded in via Ajax into the control panel, I changed the code to:
{% if not craft.request.isAjax or craft.request.isLivePreview %}
Now it works.