Mistakes

Module "Mistakes" allows you to receive messages from users of error texts in the site.

Module refers to the part of the CMS "Interactive" and can be installed optionally.

List of mistakes

The site is connected using template tag show_block. The tag displays the words "Having noticed a mistake in the text, allocate it and press Ctrl-Enter." and the code for processing pressing the shortcut keys Ctrl + Enter.

The administrative part of the module are aggregated user error messages on the site. Number of messages (non-zero) displayed in the administrative part of the menu next to the module name.

Edit of mistake

Messages have the following characteristics:

Template tags

Для работы с модулем «Mistakes» служат следующие шаблонные теги:

show_block – подключает модуль «Ошибка на сайте».

Example:

<insert name="show_block" module="mistakes">

Выведет «Если Вы заметили ошибку на сайте, выделите ее и нажмите Ctrl+Enter».

Шаблон: файл modules/mistakes/views/mistakes.show_block.php.

В шаблоне тега можно получить значение любого атрибута через переменную $result["attributes"]["название атрибута"].

Database

{mistakes} – Ошибки на сайте, добавленные пользователями

Files

  1. modules/mistakes/admin/mistakes.admin.php – Просмотр уведомлений об ошибках на сайте;

  2. modules/mistakes/admin/mistakes.admin.count.php – Количество уведомлений об ошибоках на сайте;

  3. modules/mistakes/js/mistakes.show_block.js – JS-сценарий модуля;

  4. modules/mistakes/mistakes.php – Controller;

  5. modules/mistakes/mistakes.action.php – Processes the received data from the form;

  6. modules/mistakes/mistakes.install.php – Module installation;

  7. modules/mistakes/views/mistakes.view.show_block.php – Шаблон формы добавления уведомления об ошибке.