“What is a Block?” is a question that comes up on a regular basis. This article will explain what a block is and how you can use it to add unique content to your phpFox website.
phpFox uses a system of Blocks, to organize content on your site. The word block refers to two separate things. The first, being the Position on the page. And the second, being a Content block that can be placed in one of the Position blocks.
There are 13 Position blocks in a typical installation of phpFox. These positions are pictured below (note that blocks 9 and 10 are not visible, they are positioned above the header). You can create Content blocks and place them in any of these Position blocks to show content in any location of your website.
Content blocks are created in the admincp by selecting CMS > Blocks > Add New Block.
When creating a Content block, you have the option of creating one with HTML Code, PHP Code, or PHP Block File.
If you choose the HTML or PHP code blocks, you will see a text box to enter your code into.
If you choose the PHP Block File, you will be given a drop down list with the block files that have already been created, that you can select from.
Once you have created your Content block, choose the Position block, and the Controller (site page) that you want to place it in, and select Submit.
Now you know what a Block is, and how you can use it to place content on specific pages of your phpFox website.