moziloCMS Logo moziloCMS documentation
moziloCMS - The CMS for Beginners

Own syntax elements are used:

  • To extend the syntax scope of moziloCMS.
  • To incorporate frequently used elements or texts in an easy way.
  • To modify or overwrite existing CMS syntax elements.

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.

Basic rules

Your own syntax elements must start on a new line and consist of three parts:

  1. Name: The letters A - Z and a - z, the numbers 0 - 9 and the underscore "_" are allowed.
  2. Separation: Always consists of " = " (space, equal sign, space).
  3. Source code: Everything that is possible in HTML is allowed, as well as of course all CMS syntax elements.
    In addition, in contrast to previous mozilo versions, line breaks are now also permitted within your own syntax elements.

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 ]

Syntax examples
1
2
3
4
5
syntax1 = <a href="http://www.mozilo.de">www.mozilo.de</a>
syntax2 = <a href="http://{VALUE}">{VALUE}</a>
syntax3 = <a href="http://{VALUE}">{DESCRIPTION}</a>
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

Overwriting an existing CMS syntax element:

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 = ".

1
2
3
fett = <strong>{VALUE}</strong>
Example of a misinterpretation

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:

1
2
3
4
5
syntax = Berlin = 3.5 Mio<br />
Paris = 2.2 Mio.<br />
London = 8.3 Mio

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".

1
2
3
4
5
syntax = Berlin = 3.5 Mio<br />
^Paris = 2.2 Mio.<br />
 London = 8.3 Mio
Custom syntax elements Icons (from 2.0 Revision 34)

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.

1
2
3
4
5
1br = <br />
wikipedia = [link={DESCRIPTION}|http://de.wikipedia.org/wiki/{VALUE}]
2br___icon = <b>&lt;br&gt;</b>
wikipedia___icon = @=Kategorie:wikipedia.png=@

3Your own icons in the editor.

The page must be reloaded in the browser for the icons to be visible.

User-defined syntax elements:Close
😛 😎 😢 😭 😒 🤪 🙂 😄 😬 🤓 🤣 😏 😱 😞 😉 😈 😱 😴 😬 🙏 3