Module Position/ru: Difference between revisions

From Joomla! Documentation

Created page with "Размещение модулей"
 
FuzzyBot (talk | contribs)
Updating to match new version of source page
 
(8 intermediate revisions by one other user not shown)
Line 2: Line 2:
{{Chunk:Module Position/en}}
{{Chunk:Module Position/en}}
__TOC__
__TOC__
==Understanding Module Positions==
==Понимание Модульных Позиций==
Joomla! Users and Administrators need to only understand the following:
В Joomla! пользователи и администраторы должны только понять следующее:  
*Modules are set positions dictated by the [[template]] developer when they developed the template.
* Модули размещаются в позиции, указанные создателями [[template|шаблона]].  
*Modules can be turned on and off based on menu selection.
* Модули могут включаться и выключаться в зависимости от выбранного меню.
*Modules can be reordered in their assigned position using the Module Manager.
* Модули могут быть упорядочены в определенной последовательности, которой можно управлять через Менеджер модулей.


===Visualization===
===Визуализация===
It's possible to visualize all modules set on a template by calling the <code>"tp=1"</code> query string on the front-end.
Есть возможность отобразить все возможные позиции модулей в шаблоне, добавляя к строке запроса следующие симоволы:
<code>"tp=1"</code>.
<pre>
<pre>
http://www.example.com/index.php?tp=1
http://www.example.com/index.php?tp=1
</pre>
</pre>


'''Joomla 2.5''' {{JVer|2.5}} and '''Joomla 3.x''' {{JVer|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''':
<div class="mw-translate-fuzzy">
*{{rarr|Extensions,Template Manager}} then click the Options button in the toolbar.
В ''' Joomla 2.5''' {{JVer|2.5}} и '''Joomla 3.х''' {{JVer|3.х}} для отображения шаблона с позициями можно вписать ?tp=1 или &tp=1, при условии, что активирован '''Просмотр позиций для модулей в режиме''' в менеджере шаблонов.
*Under the '''Templates Tab''', make sure <u>''Preview Module Positions''</u> is set to '''Enabled'''.
* {{rarr|Расширения, Менеджер шаблонов}} затем нажмите кнопку '''Настройки''', которая распологается справа вверху на панели инструментов.
*В меню Менеджер шаблонов, убедитесь, что <u>"просмотр позиций модулей"</u> имеет значение ""включено"'.
</div>


==Module Map==
==Карта Модуля==
The image below shows an example of a module map when module mapping is enabled in template administration.
На рисунке ниже показан пример карты модуля, при условии, что модуль сопоставления включен в шаблон управления.
:[[Image:Module_Map.jpg|600px|Module positions in a default Joomla! 1.5 template]]
:[[Image:Module_Map.jpg|600px| равен 600 пикселям модуля в позиции по умолчанию шаблона Joomla! 1.5]]


<noinclude>[[Category:Templates]]
<noinclude>[[Category:Templates]]
[[Category:Modules]]
[[Category:Modules]]
</noinclude>
</noinclude>

Latest revision as of 20:50, 29 August 2021

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! пользователи и администраторы должны только понять следующее:

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

Визуализация

Есть возможность отобразить все возможные позиции модулей в шаблоне, добавляя к строке запроса следующие симоволы: "tp=1".

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

В Joomla 2.5 Joomla 2.5 и Joomla 3.х Joomla 3.х для отображения шаблона с позициями можно вписать ?tp=1 или &tp=1, при условии, что активирован Просмотр позиций для модулей в режиме в менеджере шаблонов.

  • Расширения  Менеджер шаблонов затем нажмите кнопку Настройки, которая распологается справа вверху на панели инструментов.
  • В меню Менеджер шаблонов, убедитесь, что "просмотр позиций модулей" имеет значение ""включено"'.

Карта Модуля

На рисунке ниже показан пример карты модуля, при условии, что модуль сопоставления включен в шаблон управления.

равен 600 пикселям модуля в позиции по умолчанию шаблона Joomla! 1.5