CMSMS Content Blocks

CMSMS Content Blocks

The default for CMSMS content template tag is {content}. This will pull in the content that your client inputs through the backend. But what if they want more than one content block? You could use a Global Content Block (GCB) but that adds another layer for yor client to learn. How abot more than one content block on the same page? This is easy to accomplish using more than one content tag in the same template. It’s a little known fact that CMSMS content tag actually has some extra features that add additional functionality.

To have more than one content tag in a template and show an additional WYSIWYG edit area in the backend for this additional tag, simply insert the following:

{content block=”second_content_block”}

There are some optional switches that can be used that control the behaviour

  • wysiwyg (true/false) – If set to false, then a wysiwyg will never be used while editing this block. If true, then it acts as normal. Only works when block parameter is used.
  • oneline (true/false) – If set to true, then only one edit line will be shown while editing this block. If false, then it acts as normal. Only works when block parameter is used.
  • size – Applicable only when the oneline option is used this optional parameter allows you to specify the size of the edit field. The default value is 50.
  • default – Allows you to specify default content for this content blocks (additional content blocks only).
  • label – Allows specifying a label for display in the edit content page.
  • assign – Assigns the content to a smarty parameter, which you can then use in other areas of the page, or use to test whether content exists in it or not.

If you wanted to provide a label for the content blocks, use the label parameter as follows:

{content label=”Left hand content”}
This will give the default content tag a label in the backend of “Left hand content”

{content block=”second_content_block” label=”Right hand content”}
This will add a second content block and edit area in the backend with the label of Right hand content

Oliver Partridge

Building websites since 2000, I have a wealth of experience in eMarketing, SEO, e-mail marketing and social media marketing. Google+ and Twitter

Leave a Reply

  • Symphony CMS for beginners

    Website Design & Development

    Symphony is one of many CMSs out there but with one big difference. Where most use MySQL to store things like content and templates, Symphony

  • Finding Category ID in WordPress

    Website Design & Development Wordpress

    If you are excluding WordPress blog categories from pages and RSS feeds you will need to know the category ID number first. This sometimes stumps

  • Getting Commission Junction’s API to workGetting Commission Junction’s API to work

    Getting Commission Junction’s API to work

    Website Design & Development

    I have seen a few posts on various affiliate forums that attempt to help in getting the Commission Junction (CJ) API working. The API allows