In this section, we're going to create a rather simple block that allows you to enter structured content in order to make sure the output looks identical for all products on your webpage. This block is needed for the second example, which pulls information from every information block to create a list.
While this block is called Product Information, it can easily be modified to hold different kind of information, such as news, real estate, FAQ, team members, and more. The input dialog is going to contain three fields, one for the title, a picture, and a rich text editor for the description. The result is going to look similar to the following screenshot:
We already had a first quick look at the files of a basic block in Chapter 4, Managing Add-ons. Now, we're going to create these files. To do this, we have to create a new directory as we did several times when we created a new template. However, this time we're not going to use...