phpFox Basics: What is a Block?

“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.

positionblock

Content blocks are created in the admincp by selecting CMS > Blocks > Add New Block.

menu

When creating a Content block, you have the option of creating one with HTML Code, PHP Code, or PHP Block File.

type

If you choose the HTML or PHP code blocks, you will see a text box to enter your code into.

blockcode

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.

blockfile

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.

Looking for quality phpFox Hosting? Look no further than Arvixe Web Hosting!

Tags: , , , , , , , , , | Posted under phpfox | RSS 2.0

Author Spotlight

Stephanie Brown

Stephanie Brown

I am a web and graphic designer with 10+ years experience in website design and development, as well as website hosting. I have been working with the phpFox networking script for 3+ years. In those 3 years I have assisted clients with template/style customization and design, addon development, and general phpFox site maintenance. Outside of the internet, I am a mother of 2 young children, caretaker of 1 old english bulldog, 4 persian cats, and 1 baby black rat snake that decided to slither into our kitchen one day.

Leave a Reply

Your email address will not be published. Required fields are marked *


8 − 8 =

You may use these HTML tags and attributes: <a href="" title="" rel=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>