Error in composer when trying to override view for image block
Permalink
I'd like images on my site wrapped in a <figure> tag, so I tried to override the default image block view as below by creating blocks/image/view.php with the content below:
This seems to work, except that when I go to the compose view (to, for example, write a blog post), I get two big errors where the image attachment fields should be that say it can't find "blocks/image/composer/header.php" or "blocks/image/composer/thumbnail.php". I was trying to debug this and found that even if I just create an empty "blocks/image" folder I start getting these error. Maybe I am misunderstanding the documentation, but it seems like if it can't find the files in "blocks/image/" it should look in "concrete/blocks/image/" (where the files actually exist).
Any suggestions for how to fix this?
- Adam
This seems to work, except that when I go to the compose view (to, for example, write a blog post), I get two big errors where the image attachment fields should be that say it can't find "blocks/image/composer/header.php" or "blocks/image/composer/thumbnail.php". I was trying to debug this and found that even if I just create an empty "blocks/image" folder I start getting these error. Maybe I am misunderstanding the documentation, but it seems like if it can't find the files in "blocks/image/" it should look in "concrete/blocks/image/" (where the files actually exist).
Any suggestions for how to fix this?
- Adam