Search code examples
categoriesdumpshopware

How to access the categories from this array to display on my custom page


I want to access page.categories.entities.elements->in that how to deal with these id's not getting

Here is the screenshot attached:

here is the screenshot attached


Solution

  • We can do it like this also:

    {% set categories = page.categories %}
     {% for category in categories %}
    <li>{{ category.translated.name }}</li>
    {% endfor %}