objectCMS
Web Content Management System
![]() |
Multi Server Multi Site Distributed CMS |
|---|---|
![]() |
Multi Language |
![]() |
Search Engine Friendly |
objectCMS
Adding Blocks to Templates
In order to add Blocks to a new or existing template, you will need to edit the corresponding Template File (.tpl). You may use any text/html editing program you wish, such as NotePad, to edit the file. Scroll down the coded text until you find the “content” section.
It will look something like this:
You will need to add the following values for each Block. In this example, we have three sections – Front Block 1, followed by the main content area, called Center Block, then Front Block 2.
Front Block 1 is defined as “$block.bl_frontBlock1”.
The main content area of Center Block is defined as “$content”.
Front Block 2 is defined as “$block.bl_frontBlock2”.
In this example, the .tpl file should be edited to the following:
{$block.bl_frontBlock1|default:””}
{$content}
{$block.bl_frontBlock2|default:””}
Save your Template File (.tpl) and upload it to the web site. You will need to return to the “Blocks” menu item in Object CMS and click the “Synchronization” option from the submenu to make your edited Blocks appear in the new template file.
| About Us | Products | Services | Contact Us | |||
| Bojana Cakic | Content Management System | Custom Programming | ||||
| Karim Dahmani | Search Engine Optimization | Customer Service Outsourcing | ||||
| Brad Fallon | Affiliate Software | Web Design | ||||
| Max Stolbinsky | Redirection Software | Graphic Design | ||||
| Media Agency | ||||||
| System Administration | ||||||
| Security Audits |
Adding Blocks to Templates

