Before we start creating our own block templates, we want to look at the files we'll either find or create. Knowing where to look for the right template is a good start, especially for experienced PHP programmers, as most of the templates are rather easy to read and don't need a lot of explanation once you've found them.
Let's start by looking at the following directory structure:
The first directory /blocks
is located in the root of your site and might contain custom blocks you've created yourself or installed manually. One level below, in the concrete
directory, you can see some blocks available in the concrete5 core. As mentioned before, never change a file underneath the /concrete
directory, as this is part of the core.
When working with a block template, it's important to understand that you can override the core elements in concrete5. What does this mean?
Let's start with a simple example:
Copy the view.php
file from /concrete/blocks/content
to /blocks/content...