Category
categoriesTree
Parameters
| Variable | Type | Default | Required |
| categories | SDKCoreDtosElementCollection | null | true |
| showImage | string | FWK/ViewHelpers/Category/Macro/CategoriesTree::SHOW_IMAGE_NONE | false |
| Available values | |||
|
FWK/ViewHelpers/Category/Macro/CategoriesTree::SHOW_IMAGE_BACKGROUND_IMAGE FWK/ViewHelpers/Category/Macro/CategoriesTree::SHOW_IMAGE_BEFORE_NAME FWK/ViewHelpers/Category/Macro/CategoriesTree::SHOW_IMAGE_AFTER_NAME FWK/ViewHelpers/Category/Macro/CategoriesTree::SHOW_IMAGE_NONE |
|||
Example
{% import macrosCore.category as categoryMacros %}
{{ categoryMacros.categoriesTree({
showImage: constant('FWKViewHelpersCategoryMacroCategoriesTree::SHOW_IMAGE_BEFORE_NAME'),
categories: categories
}) }}
Related
macros/modes/{{coreMode}}/category/categoriesTree.html.twig
View Helper
FWK/ViewHelpers/Category/Macro/CategoriesTree.php
richSnippets
Parameters
| Variable | Type | Default | Required |
| richSnippets | SDKDtosSnippetsCategoryRichSnippets | null | true |
Example
{% import macrosCore.category as categoryMacro %}
{{ categoryMacros.richSnippets({
richSnippets: categoryRichSnippets
}) }}
Related
macros/modes/{{coreMode}}/category/richSnippets.html.twig
View Helper
FWK/ViewHelpers/Category/Macro/RichSnippets.php