Docs > Tags > boolean

The <content:boolean> tag defines a content placeholder for a boolean value (true or false). This tag is usually used in page metadata. Authors will supply a value by checking a checkbox in the page editor.
Name R? Description
id Y Every content tags should be given a unique id, which is alphanumeric and does not start with a number.

Example

This example shows how to define a boolean as a metadata field by including it in the <head> of a web template, and how you can subsequently refer to the value in script.
<html>
<head>
<!-- Define a metadata field named "important" -->
<content:boolean id="important"/>
</head>
<body>
<?js if (page.getText('important')=='true') { ?>
This page is important!
<?js } ?>
</body>
</html>


Can't find what you're looking for?

Let us know and we'll see if we can help.