Template includes causing problems with perch blocks UI in runway 3.1.2
Not sure if this is related my last post - https://forum.grabaperch.com/forum/09-27-2018-using-page-attributes-as-template-include-in-perch-collection-not-working
Template fields are not displaying in the UI when a new block item is added from a template include inside a collection template.
I have a runway collection template some of which is comprised of a set of blocks in a sub-template (_content_blocks.html) - this is also used in other standard page templates as a template include and causes no problem with the UI in that case.
Each block is itself a template include, i.e. _content_blocks.html:
<perch:block label="Photo" type="image" icon="photo">
<perch:template path="content/default/blocks/_image.html" rescope="parent" />
When I try to add the above block item in Perch admin (Runway 3.1.2), only the block title bar (showing block type rather than label) and the block-add-bar appear in the UI but none of the template fields in _image.html appear.
If I save changes after adding the block, the fields appear fine, and if I copy the contents of the _image.html into the parent template (_content_blocks.html), the fields appear, although the block title bar displays the block type rather than the block label.
This problem doesn't occur when the same _content_blocks.html is used as a template include by another template assigned to a content region - the new blocks display when added and the block title bar displays the block label as you would expect.
Seems like there's a problem instantiating blocks... as template includes.. inside in collections! Anyone else experience similar unpredictable behaviour?