Skip to content
On this page

Including Tailor content

Including Tailor content in Boxes is very easy. Just add either the collection or section component to your yaml config:

yaml
# tailor-example.yaml
name: Tailor example
handle: tailor-example

components:
    projects:
        component: collection
        properties:
            handle: "YourContent\\Projects"

Then you can access the Tailor content in your partial directly:

twig
{# tailor-example.htm #}

{% for project in projects %}
    ...
{% endfor %}