List Collection Title¶
Availability:
Use list_collection_title module to insert a title of the currently viewed collection on a page.
Configuration parameters¶
none
Module source code¶
{% from "@macros/section_title.twig" import section_title %}
{% set collection = ObjectApi.getCollection(collection_id) %}
{% set heading = collection.customHeading ?: collection.name %}
{{ section_title(heading, { cssClasses: "collections-section-title" }) }}
Macros reference¶
Used Object Api methods¶
Module configuration schema¶
[
{
"state": "unfolded",
"label": "General settings",
"elements": [
{
"type": "infobox",
"name": "infobox",
"options": {
"type": "blank",
"message": "#### Display a unique heading instead of the collection name%s- Improve your store's SEO by adding a descriptive heading e.g. \"Day&Night Collection - Dresses for day and evening\" when [editing the collection](%s) (in the Search Engine Optimization section).%s- You can configure ribbon appearance in the [Colors and styles](%s) tab.",
"placeholderValues": ["\n", "/admin/collections/list", "\n", "#theme-and-colors"]
}
}
]
}
]