hidden-data

{hidden-data}

Plugin: Scaffolding Plugin

Hides its contents when the page is being viewed, but allows it to be modified when editing.

Usage

{hidden-data:whenEmpty=Name|whenNoRows=Name|whenHasRows=Name}
Hidden content.
{hidden-data}

Parameters

Name Required Default Description
whenEmpty
If present, will check if the named field is empty. If so, the contents will be hidden.
whenNotEmpty
If present, will check if the named field is not empty. If so, the contents will be hidden.
whenNoRows
If present, will check if the named table or repeating section has no rows. If so, the contents will be hidden.
whenHasRows
If present, will check if the named table or repeating section has rows. If so, the contents will be hidden.

Examples

Empty content

This section hides itself if the text it contains is empty.

{hidden-data:whenEmpty=My Text}
This whole section is hidden if the text below is blank.
{text-data:My Text}{text-data}
{hidden-data}

Labels

macro macro Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.