Defining more than just a content block from a page type layout
Created 6 years ago by kiltedup

Hi

There was a comment on an old post from Ryan about defining more than just a content block in a page type layout ( https://pyrocms.com/forum/channels/themes/adding-new-layouts-and-new-fields-to-layouts ).

Is this still applicable? Have tried this and had no success - all of the page type layout is still passed into the content block in the them layout as opposed to the different blocks in the page layout?

Curious as this is still a method that can be applied as it would be useful.

Cheers,

Dave

kiltedup  —  6 years ago Best Answer

OK - got it working. After looking at Anomaly\PagesModule\Page\make, i added {% extends layout('default') %} to the page type layout and then it works. Would be a nice addition to documentation.