Creating and outputting a text
A free default text always consists of two parts: an entry in the<FreeMessages-Txt> section of the shop configuration shop.config and a tag in the template, which consists of the prefix FMSG- and the parameter name.
In the shop configuration:
The shop system assigns the prefix
FMSG- itself. The shop configuration only contains the name; in the template, the prefix comes before it.Upper and lower case of the name do not matter. A text created as
Lieferhinweis can also be reached via ~FMSG-lieferhinweis~. Consistent spelling still helps, because the templates can then be searched.Using a text as a switch
FMSG- is not limited to output. The same tag also works as an area tag and as a negative area tag. What matters is whether a non-empty text is stored for the name.
Aktionsbanner contains text, the banner appears. If the text is emptied, the entire block including its surroundings disappears, and the alternative block applies.
FMSG- cannot be used as a loop tag. A free default text is exactly one value; there is nothing to iterate over.Texts may contain tags
The parser processes the stored text a second time as a template. This means: HTML in the text remains HTML, and WEBSALE tags in the text are resolved.Limits
Otherwise, the order of the entries in the section is irrelevant. You can therefore group the texts by topic so that the section remains readable.The tag at a glance
<Name> is the parameter name from the <FreeMessages-Txt> section of the shop configuration shop.config. The tag is permitted in all templates.
Related topics
- Guide: Standard texts
- Reference: FreeMessages-Txt section
- Reference: NotifyMessages-Txt section
- Reference: MSG- (messages)
