Basic Block Development
Out of Scope
Most of this video is the trainees asking questions about topics already covered or topics that are advanced, and Andrew musing on these subjects. It is informative and interesting to watch but the annotation for this installment is sparse as a result. But please don't skip this video! If you miss the topics covered in the New Concepts summary, you will be confused.
The video starts with Andrew explaining some new dashboard-only blocks that are not part of the editing experience. Then Andrew runs through how you can have more than one DB table in a block. This is covered in the Advanced Block videos.
If you are only here to learn how to make blocks, you can skip ahead to 7:15.
Back to templates
Andrew backs it up and talks about templates some more. It's interesting to watch but you can skip ahead again to 18:40 if you feel comfortable with templates. At that point Andrew opens up the file concrete/blocks/page_list/tools/rss.php. Most of the rest of this video is specific to the discussion that Andrew is having with the trainees, and is not pertinent to basic block building, though it is interesting.
Towards the end of this video, Andrew brings up a few critical functions and ideas. In all block controllers you will see a function called
view(). This is called when a block is rendered and it is the place to use
$this->set() and define any data you want to pass to your view. The function
on_page_view() is incredibly useful, it runs before the