A block is a container that you can drag and drop on a page (URL). A block can be used to pull the following onto a page:
- assets, ie. your editorial content (stories, images, videos, etc.)
- banner ads
- static elements on your page, ie. logo, page heading, search fields, etc.
- 3rd party code
A typical block is comprised of two main elements:
- Block template - the appearance of the block and it's functionality
- Content - the assets that are pulled into the block
The steps of creating a block
Choose a block template for the type of block you're creating. It's the "format" of the block, the way the content is organized and displayed.
Examples include a list of headlines, a slideshow, a video player, a collection of photos, etc. For a complete list of all block templates, reference our Block Template Selector.
Choose content (aka "assets") which the block is going to display. Content examples would be assets (articles, images, videos, etc.), banner ads, PDFs, etc. In the example above, we are building a photo gallery block, so we're choosing images as our content.
Drag 'n' drop the block into a region on the page.
A region is a pre-defined space on a page that you can place blocks into. Below you'll see a quick video of how a block can be placed inside a region.
For the technical steps on how to create a block in BLOX CMS, reference "How do I create a new block?"