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

base.html.twig doesn't render assets in 'bottom' group #62

Open
ghost opened this issue Aug 9, 2017 · 1 comment
Open

base.html.twig doesn't render assets in 'bottom' group #62

ghost opened this issue Aug 9, 2017 · 1 comment

Comments

@ghost
Copy link

ghost commented Aug 9, 2017

Base template for Learn2 does not render assets from the 'bottom' group. This breaks plugins such as SimpleSearch that adds its JS asset to this bottom group to be executed after the HTML has loaded.

The following snippet, added to base.html.twig resolved the issue for me.

...
{% block bottom %}
     {{ assets.js('bottom') }}
{% endblock %}
</body>
@rhukster
Copy link
Member

rhukster commented Aug 9, 2017

How about a PR rather than an issue? Would save time :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant