Email Password  
Sign up (it's free) Forgot password?  

Text tags (3 mins)

This video shows you how to make text in the page template editable.

type=richtext

Opens the rich text editor. The content is displayed at the position of the tag.

e.g. {cms type=richtext id=footer scope=website}

type=plaintext

Opens the plain text editor.

e.g. {cms type=plaintext id=tel_number}

type=textsource, texttarget, scripttarget and htmltarget

Opens the plain text editor. The content will be displayed at the texttarget, scripttarget or htmltarget tags with the same ID and scope. Use this where the content must appear somewhere that is not visible.

texttarget will render the text with angle brackets enclosed as < >. This ensures that any text the user enters will not mess up the rest of the HTML on the page.

e.g.
{cms type=textsource id=my_alt_text scope=page}
<img src="my_image.jpg" alt="{cms type=texttarget id=my_alt_text scope=page}
">

scripttarget will render the script with carriage returns and single and doubled quotes escaped to enable the string to be use in JavaScript.

e.g.
{cms type=textsource id=my_message scope=page}
<script>
  alert("
{cms type=texttarget id=my_message scope=page}")
</script>


htmltarget renders the text 'as is' so that it may form part of the HTML for the page. To ensure that bad HTML will not affect the workings of the CMS, htmltarget tags are only rendered in preview mode. If things go pear shaped in preview mode you can always turn preview off and correct the HTML.

e.g.
{cms type=textsource id=you_tube scope=folder}
<div class="you_tube_video">
  {cms type=htmltarget id=you_tube scope=folder}
</div>