Skip to content
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions docs/templating/twig_function_reference/product_twig_functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,4 +129,15 @@ The `ibexa_is_pim_local` is a helper Twig function that enables changing the beh
<button type="button">Modify product data</button>
</div>
{% endif %}
```

### `ibexa_product_catalog_group_attributes`

The `ibexa_product_catalog_group_attributes` filter groups product attributes based on the [attribute group]([[= user_doc =]]/pim/work_with_product_attributes/#create-attribute-groups) they belong to.

#### Example

``` html+twig
{% for group, attributes in product.attributes | ibexa_product_catalog_group_attributes %}
{{ group.getIdentifier() }}:{{ attributes|map(attribute => attribute.getAttributeDefinition().getIdentifier())|join(' ') }}
```
Loading