Content Levels

Description

In the settings of information modules there is an option Level aliases.

This option allows you to configure the output of your own blocks in different parts of the module.

For example: Important, Output images in a block, etc.

By default, some modules already have built-in block output using the Level Aliases option.

In the administration panel, levels are displayed in numbers: 1|2|3|4|5|6|7|8|9.

Depending on the level, for convenience, you can enter names instead of numbers. Example: Important|Block on the right|Block in the center.


Content levels in templates

Content levels using the example of the module Articles

In the file template/default/article/index.htm insert:

<!--{tag("moduleid=$moduleid&condition=status=3 and level=1&order=".$MOD[order]."&pagesize=10&template=list-hl")}-->

pagesize=10 - Number of important articles on the main page

level=1 - Important articles on the main page are displayed with level 1.

In managing the module content (or when changing) Articles set the level to 1


Example of block output with level 2

In the file of any module template insert:

pagesize=20 - Number of articles in this block.

level=2 - Article level.

In managing the module content (or when changing) Articles set the level to 2

pagesize=20 - number of articles in this block.

list-infomod - block content template. Tag templates in the /tag/ directory.

length=30 - number of characters. If there are more than 30 characters in the article, an ellipsis will be substituted: ...

Last updated