jmodule_get_modules($position)
Gets modules assigned to a specific position.
Parameters
string
$position Name of the position
Returns
array
An array containing modules of that position. Empty array if no modules were found.
Examples
{# Retrieve modules available in a `sidebar` position #}
{% set modules = jmodule_get_modules('sidebar') %}
{% for module in modules %}
<pre>Found module: {{ module.name }} with title: {{ module.title }}</pre>
{% endfor %}