Skip to content

List Category Title

Use list_category_title module to insert a title of the currently viewed category on a page.

Configuration parameters

none

Module source code

{% from "@macros/section_title.twig" import section_title %}

{% set category = ObjectApi.getCategory(category_id) %}

{% set marginClass = category.description ? 'mb-xs-1' : 'mb-xs-3' %}

{{ section_title(category.name, { cssClasses: "categories-section-title #{marginClass} mb-sm-0" }) }}

Macros reference

Used Object Api methods

Module configuration schema

[]