MWML [IF-PARAM]-Tag

MWML [IF-PARAM]-Tag

Show or hide content in specific modules.

Usage

Email templates, Emails, External archive

Syntax

  1. [IF-PARAM module='...' ...]...[/IF-PARAM]

Attributes

General

Attribute
Value
Description
module1
viewonline
externalarchive
Module: Online view or external archive
condition
if-all2
if-any
if-none
Sets the logical condition for performing an action - can require all, at least one, or none of the defined criteria.

render
true2
false
Controls whether an element is displayed or remains invisible.

Online View

Attribute
Value
Description
display
text
html
pdf
mobile
Determines the content display format - as plain text, with HTML formatting, as a PDF document, or optimized for mobile devices.

External Archive

Attribute
Value
Description
textmode
text
html
Defines how archived content is processed - either as plain text or with HTML formatting.
display
subject
text
html
Specifies which part of an archived document is displayed - only the subject/title or the complete content (with or without formatting).

Example

Hide content in online view
  1. [IF-PARAM module='viewonline' render='false']
  2. [VIEWONLINE]View email in browser[/VIEWONLINE]
  3. [/IF-PARAM]



1. Required field
2. Default: If the attribute is omitted, it is automatically initialized with this value.