Skip to content

Conversation

dpfaffenbauer
Copy link
Member

Q A
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no

Allows that in Mail Documents:

%Twig(files, {'template' : ':Mail/includes:files.html.twig'});

The corresponding template looks like that:

<ul>
    {% for file in files if file is asset %}
        <li><a href="{{ file }}">{{ file.getFilename }}</a></li>
    {% endfor %}
</ul>

@dpfaffenbauer dpfaffenbauer requested a review from a team February 20, 2019 16:21
@dpfaffenbauer dpfaffenbauer added this to the 2.0.4 milestone Feb 20, 2019
@dpfaffenbauer dpfaffenbauer self-assigned this Feb 20, 2019
@dpfaffenbauer dpfaffenbauer merged commit 6b12f89 into coreshop:2.0 Feb 20, 2019
@dpfaffenbauer dpfaffenbauer deleted the twig-placeholder branch February 20, 2019 16:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant