Pages

Design with Twig Hooks

Use the sylius_cms:shop:render:page_link component and pass the following props:

  • code (string, required) The unique identifier of the collection you want to render.

sylius_twig_hooks:
    hooks:
        'sylius_shop.product.show.content.info.overview.accordion.details':
            dynamic_details:
                component: 'sylius_cms:shop:render:page_link'
                props:
                    code: 'my_page_code'

You can use the template option, but you’ll be fully responsible for rendering the page:

# ...
code: 'my_page_code'
template: 'my_custom_page.html.twig'

Design directly in Twig Template

You can override the name by passing the appropriate option:

Render only the bare URL

Render the entire page embedded

You can render the entire page at a low level by using the generic route and passing the page slug as a parameter:

Last updated

Was this helpful?