List Producer Description¶
Use list_producer_description
module to insert a description of the currently viewed producer page.
Configuration parameters¶
none
Module source code¶
{% from "@macros/list_description.twig" import list_description %}
{% set producer = ObjectApi.getProducer(producer_id) %}
{% set hasEditorSettingsAppearance = moduleConfig.moduleAppearance == 'editorSettings' %}
{% set resetCssClass = hasEditorSettingsAppearance ? 'resetcss' : '' %}
{{
list_description(producer.description, {
cssClasses: "producer-section-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."
}
]
}
}
]
}
]