Own syntax elements are used:
To create your own syntax elements, HTML knowledge is required!
Therefore, the explanations in this guide assume the corresponding knowledge.
You can get help creating your own syntax elements in the support forum.
You can also find further examples for your own syntax elements there.
Access to creating your own syntax elements is in the admin area Settings >
Your own syntax elements must start on a new line and consist of three parts:
If the syntax name and separation appear highlighted in color: "Syntax name = " The rules were followed and the system recognized the element.
So-called "placeholders" are inserted in the source text at places with individual content.
The placeholder { DESCRIPTION } takes the value between = and |
The placeholder { VALUE} takes the value between | and ]
Example: | Result: |
---|---|
[ syntax1 ] | www.mozilo.de |
[ syntax2 |www.mozilo.de/forum/ ] | www.mozilo.de/forum/ |
[ syntax3 = go to mozilo |www.mozilo.de ] | go to mozilo |
For example, if the content of the existing CMS syntax element [
fett
|
] from "<b> </b>" to "<strong> </strong>" ,
it is sufficient to create a new syntax element under the name "fett = ".
If the source text after the first word in a line happens to contain " = " (space, equal sign, space), mozilo will interpret the whole thing as a syntax name.
For example, in a text block with a list of population numbers:
With this input, Paris = and London = are recognized as new syntax names.
To prevent this, simply place a space or circumflex (high roof) ^ in front of the words "Paris" and "London".
To create a custom icon for a syntax element, you must append ___icon (3 x underscore) to the corresponding syntax name. You can use either text, HTML code as the source text, or you can select a self-created icon graphic using the "Files" select box. The icon graphic can be stored in the existing category or in a specially created category, like all files.
The icon graphic should not be higher than 16px.
1The syntax elements.
2The icons.
3Your own icons in the editor.
The page must be reloaded in the browser for the icons to be visible.