jposition($position, $attribs = [])

It allows to render a module position inside a twig layout.

  1. Parameters
  2. Returns
  3. Examples

Parameters

  • string $position Name of the position to render
  • array $attribs An array of attributes for the module chrome function.

Returns

string HTML with the position content

Examples


{#  Render the content of the template position-8 #}
{{ jposition('position-8') }}