This website stores cookies on your computer. These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media. To find out more about the cookies we use, see our Privacy Policy.
Before creating a block, it helps to use an existing block from scratch, hopefully the simpler the better. For this, we've provided a very simple sample block for download in our developer downloads section.
To install this block:
* Unzip the block.
* Drag it to your Concrete5 blocks/ folder, which will likely be empty.
* Login to your Concrete5 installation, and go to "Add Functionality" within the dashboard.
* You should see the new block listed as available for installation (after all the currently installed blocks.)
* Click install.
That should be all there is to it. The block will automatically have its database table created and its record added to Concrete, at which point you'll be able to add it throughout your site.
But how does our block know that it should be named "Basic Test"? And how does it create it's database during installation? To get the answer to these questions we head to "controller.php"