Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Pimcore] introduce twig placeholder #827

Merged
merged 1 commit into from
Feb 20, 2019

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