Размещение модулей

From Joomla! Documentation

Revision as of 13:44, 4 June 2015 by Antonio3 (talk | contribs) (Created page with "{{Chunk:Module Position/en}} __ТОС__ ==Понимание Модульных Позиций== В Joomla! пользователи и администраторы должн...")

A module position is a placeholder in a template. Placeholders identify one or several positions within the template and tell the Joomla! application where to place output from modules assigned to a particular position. The template designer has complete control over module positions, creating variations between templates and the respective Joomla! default positions assigned to modules in the installation sample data.

For example, the module position Left could be defined to be on the left side of the template to display a site navigation menu. So if a module is assigned the Left position, it will be displayed wherever the designer puts that Left module position - not necessarily the left side of the page.

__ТОС__

Понимание Модульных Позиций

В Joomla! пользователи и администраторы должны только понять следующее:

  • Модули размещаются в позиции, указанные разработиками шаблона.
  • Модули могут включаться и выключаться в зависимости от выбранного меню.
  • Модули могут быть упорядочены в определенной последовательности, которой можно управлять в Менеджере модулей.

Visualization

It's possible to visualize all modules set on a template by calling the "tp=1" query string on the front-end.

http://www.example.com/index.php?tp=1

Joomla 2.5 Joomla 2.5 and Joomla 3.x Joomla 3.x will show the template positions with ?tp=1 or &tp=1 if the Preview Module Positions mode in the Template Manager has been Enabled:

  • Extensions  Template Manager then click the Options button in the toolbar.
  • Under the Templates Tab, make sure Preview Module Positions is set to Enabled.

Module Map

The image below shows an example of a module map when module mapping is enabled in template administration.

Module positions in a default Joomla! 1.5 template