Skip to content

List Collection Additional Description

Use list_collection_additional_description module to insert an additional description of the currently viewed collection page.

Configuration parameters

none

Module source code

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

{% set collection = ObjectApi.getCollection(collection_id) %}

{% set hasEditorSettingsAppearance = moduleConfig.moduleAppearance == 'editorSettings' %}

{% set resetCssClass = hasEditorSettingsAppearance ? 'resetcss' : '' %}

{{ list_description(collection.additionalDescription, { cssClasses: "collection-section-additional-description #{resetCssClass}" }) }}

Macros reference

Used Object Api methods

Module configuration schema

[
    {
        "state": "unfolded",
        "label": "General settings",
        "elements": [
            {
                "type": "radio",
                "name": "moduleAppearance",
                "label": "The module content appearance is determined by:",
                "defaultValue": "editorSettings",
                "options": {
                    "radioOptions": [
                        {
                            "key": "editorSettings",
                            "label": "only by the settings from the text editor"
                        },
                        {
                            "key": "editorAndSkinSettings",
                            "label": "text editor and store theme style",
                            "hint": "If you do not change the appearance of the content (e.g. text size and color) in the text editor, the module will use the store theme styles."
                        }
                    ]
                }
            }
        ]
    }
]