You might have
noticed that we copied the view.php
from the concrete/blocks directory to our top level blocks directory to create a template. This makes sure we don't have to touch the core but also generates some redundancy, especially if the original view.php
was huge. However, there's a solution that includes the original template without copying any of its content.
This works nicely if you just want to wrap an existing template. Assume you want to add some CSS rules to a content block. You'll quickly realize that there's no wrapping DIV
in it which makes it hard to apply styles for the content block. You can override any paragraph but if that's not what you want to do you have to create a new template and add a surrounding DIV
element.