Default Custom Template for Image block - Page Theme getThemeDefaultBlockTemplates()
Permalink
Can some one enlighten me here on how this works. I have followed the documentation here:
http://documentation.concrete5.org/developers/working-with-blocks/w...
I've earched for an hour now and tried just about everything and I still cannont get a custom template for the image block to become default via the getThemeDefaultBlockTemplates function.
I have the template contained in my theme package /packages/package_name/theme_name/blocks/image/templates/custom_image_template.php
I have tried the template contained within a folder too with it name view.php I have also tried with and without the .php in the Page Theme folder.
Also note that if I manually go to the block the custom template is available and works fine. It also works fine setCustomTemplate set on an area.
I have also switched to a different theme and reactivated.
Starting to think that nothing works here. I have used concrete5 for a long time and the more I use 5.7 the more I hate it because nothing seems quite complete, some things don't work as expected or simply is no where to be seen in the documentation.
I hate to be -that- guy but I'm frustrated.
Any help is appreciated!
Thanks!
http://documentation.concrete5.org/developers/working-with-blocks/w...
I've earched for an hour now and tried just about everything and I still cannont get a custom template for the image block to become default via the getThemeDefaultBlockTemplates function.
I have the template contained in my theme package /packages/package_name/theme_name/blocks/image/templates/custom_image_template.php
I have tried the template contained within a folder too with it name view.php I have also tried with and without the .php in the Page Theme folder.
Also note that if I manually go to the block the custom template is available and works fine. It also works fine setCustomTemplate set on an area.
I have also switched to a different theme and reactivated.
Starting to think that nothing works here. I have used concrete5 for a long time and the more I use 5.7 the more I hate it because nothing seems quite complete, some things don't work as expected or simply is no where to be seen in the documentation.
I hate to be -that- guy but I'm frustrated.
Any help is appreciated!
Thanks!

The default template applies to whenever you add this block, it will get this template. Existing blocks won't change from template (neither if they haven't got a template assigned). So you have to add the block again somewhere on a page and the template should be picked. If not, let us know your entire page_theme.php file to spot any possible errors.