Apply custom block template

Permalink
Hey guys,
sorry for the "simple" question, but I'm just re-creating a C5 site based on the 5.7.x version and everything went fine so far. Now I just wanted to add a custom block template for my "Blog" site, which basically is a custom template for the "page-list" block.

What I did:
I created the following file: /application/blocks/page_list/view.php
...and designed it as needed. I also set up the whole structure and created the pagelist itself and it lists my posts, but I can not apply my custom style to this block - can you please tell me how to add it?

Thank you very much!

 
MrKDilkington replied on at Permalink Reply
MrKDilkington
Hi Med1a,

The way you have it set up currently, view.php is overriding the view.php for the Page List block.

To use your view.php as a template, you need to add it into a templates folder.
application\blocks\page_list\templates

After you create the templates folder, move your view.php into it.

Now it will be available to add as a custom template.
https://www.concrete5.org/documentation/using-concrete5-7/in-page-ed...
mlmedia replied on at Permalink Reply
hey there, thank you very much! I did this but I think I just found the real problem: if I click on the gearwheel-icon to change the block style nothing happens... why?!
MrKDilkington replied on at Permalink Reply
MrKDilkington
Are there any errors in your browser console?

Are you using a custom theme?