You are here
Compose tips
- Indicate conditional text using this syntax: [condition TYPE DETAILS](conditional text here)[/condition], where:
- TYPE is the name of the condition plugin, such as enabled, generic, etc. You can install plugins to give you additional types of conditions.
- DETAILS depends on TYPE, and may not be required for all condition plugins.
You can also make compound conditions, such as: [condition TYPE DETAILS OP TYPE2 DETAILS2], where OP is one of the following: and, or, xor, nor, nand, imp. It is also possible to use prefixes: [condition OP TYPE DETAILS], where OP is one of the following: not. Prefixed and compound conditions can also be mixed.
Details of installed types:- Boolean false condition type: [condition false] always evaluates to false.
- Boolean true condition type: [condition true] always evaluates to true.
- Custom values condition type:[condition custom GROUP VALUE], where:
- GROUP is the machine name of a custom-defined group for this filter.
- VALUE is the machine name of a custom-defined value within the group.
- Module enabled plugin: [condition enabled MODULENAME] or [condition enabled MODULENAME OP VERSION], where:
- MODULENAME is the machine name of a module, such as views or block. The machine name of a module is the name of the module file (e.g., if the module file is views.module, the module name is views).
- OP is an operator. Supported operators are: =, ==, >, <, >=, <=.
- VERSION is a version number, such as 7.2, 7.x, 7.x-3.1, etc.
- Token empty condition type: [condition token_compare {TOKEN} OP {VALUE}], where:
- TOKEN is a token available in the context of this text.
- OP is the operation to compare with e.g. ==,<,>,<=,>=,CONTAINS,IN
- VALUE is the value to compare against.
- Token empty condition type: [condition token_empty TOKEN], where:
- TOKEN is a token available in the context of this text.
- No HTML tags allowed.
- Web page addresses and e-mail addresses turn into links automatically.
- Lines and paragraphs are automatically recognized. The <br /> line break, <p> paragraph and </p> close paragraph tags are inserted automatically. If paragraphs are not recognized simply add a couple blank lines.