Knowledge Base Hub

Browse through our helpful how-to guides to get the fastest solutions to your technical issues.

Home  >  CMS FAQ  >  CMS Mde Simple  >  How To Use The Global Content Blocks In CMS Made Simple
Top Scroll

How To Use The Global Content Blocks In CMS Made Simple

 2 min

Global content blocks are the blocks of content or HTML that get called through the global_content tags in your templates. Adding content thorough the global content blocks reduces the effort, time and errors. It also simplifies the process of adding content as you have to make the changes only once in the global content blocks instead of making changes in every template.

Setting Up The Global Content Blocks:

There are two steps involved in the process of setting up the global content blocks : Creating the global content block template and adding the global_content tag to the page template.

Let’s look at an example. In this example, we will add a content block that comprises of a ‘More Information’ section that will be shown at the bottom of every page that utilizes the respective page templates.

Create The Global Content Block Template

  • Login to your CMS made simple admin panel.
  • Click on ‘Design Manager’ in CMS and go to ‘Layout section’.
  • On the templates tab, click on the option – ‘Create new template’, enter Select Core::Generic.
  • Click on Submit.
  • Enter a name for the template. Our example template is known as ‘MoreInfo’.
  • In the Template Content section, delete the default text that is present and add the code mentioned below:

<h2>More information</h2><br />

<p>For more information, contact us by email or phone.<p>

  • The first line shows ‘More Information’ edited as a second-level heading, then there is a line break. The second line shows another line of center that is formatted as paragraph text.
  • Click on ‘Description’ and add a description to the template.
  • Although adding description is optional but preferably you should add a description especially if you are creating many templates or if you have many authors and designers working on your website.
  • Click on the option ‘Designs’ and select the designs that you would like to work with. Hold the control key for selecting multiple designs. In most of the situations, there is no need for you to change the settings on the Permissions or Advanced tabs.
  • Click on ‘Submit’.

Add The Global Content Block To The Page Template

  • Your next step is to add the global content block to a page template. In this example, we will be adding the ‘MoreInfo’ global content block to the Left Simple Navigation + 1 column default template, this is the Core::Page template type.
  • In the Template Content section, look for the ‘Content Area’ section and enter the global_content code at the bottom:
  • {global_content name=’MoreInfo’}
  • <br />
  • Click on ‘Apply’. Reload this page and more information will now be displayed below the page content.

In order to get more information about the global_content tag, or other tags available in CMS Made Simple, Go to Extensions > Tags present in the CMS Made Simple admin panel and click on the tag name for getting more information about that tag.

 

For our Knowledge Base visitors only
Get 10% OFF on Hosting
Special Offer!
30
MINS
59
SECS
Claim the discount before it’s too late. Use the coupon code:
STORYSAVER
Note: Copy the coupon code and apply it on checkout.