682 search results

{% extends app.request.headers.get('turbo-frame') == 'modal' ? 'modalFrame.html.twig' : 'base.html.twig' %}
See Code Block in Script
{% if app.request.headers.get('turbo-frame') == frame %}
<turbo-stream action="append" target="flash-container">
<template>{{ include('_flashes.html.twig') }}</template>
</turbo-stream>
{% for stream in app.flashes('stream') %}
{{ stream|raw }}
{% endfor %}
{% endif %}
See Code Block in Script
…I haven't enabled Turbo for EA yet, so can't tell you for sure... but there should not be any problems I think... there were some problems in the past as I see: https://github.com/EasyCorp/EasyAdminBundle/issues?q=is%3Aissue+turbo+is%3Aclosed …
There are some incompatibilities with the Turbo JavaScript library and the web debug toolbar... but I've never had a chance to dive into them. However, they've never actually caused my any real issues. But, we really do need to hunt those down - the…
weaverryan
weaverryan
Read Full Comment
IIRC it's a change in Turbo, so now no error is supposed to happen anymore.
It seems that with recent versions of Turbo (eg. 7.2.4) adding `target="_top"` is not required anymore. Unfortunately I can't find out why in Turbo release notes :/ Any idea what caused that improvement?
Hello, I am using UX Turbo, I watched this doc : https://github.com/symfony/ux-turbo/#sending-async-changes-using-mercure-a-chat I wanted to know if it is possible to push data to selected users through a query, but also push other data…
…ajax response which is why I can't simply generate them in twig and pass them to the stimulus controller. It would be awesome if this functionality was built into Turbo. Or is there a completely different way that I just don't know about
84 lines | templates/base.html.twig
// ... lines 1 - 11
{% endblock %}
</head>
<body data-turbo="false">
<div class="page-top">
<header class="header px-2">
// ... lines 17 - 84
See Code Block in Script
84 lines | templates/base.html.twig
// ... lines 1 - 27
<ul class="navbar-nav" data-turbo="true">
<li class="nav-item">
<a class="nav-link" href="{{ path('app_cart') }}">
Shopping Cart ({{ count_cart_items() }})
</a>
</li>
// ... lines 35 - 84
See Code Block in Script
Hey |mention:91995| It is telling you the package `turbo-view-transitions` was not found (for some reason). Can you double-check that it's installed? You can install it by running `php bin/console importmap:require turbo-view-transitions` Cheers!
MolloKhan
MolloKhan
Read Full Comment
Hey |mention:90254| Your problem can likely be solved with a `Turbo-Frame`. Have you watched those chapters yet? Take a look at them and let me know if you run into trouble Cheers!
MolloKhan
MolloKhan
Read Full Comment
I have a question concerning form submission with Turbo. (I have not even finished all these videos yet, so the answer may be there, but twith time constraints I'm hoping someone can give me clue...) Obviously turbo works great with form submission and will…
JeffJones
JeffJones
Read Full Comment
Yes, I just disabled Turbo drive ( Turbo.session.drive = false;) and the lazy controllers work as expected. As soon as I enable turbo again, they stop working when navigating from another page.
Nicolas-S
Nicolas-S
Read Full Comment
Hey |mention:11130| You can listen to the `turbo:before-render` event, find the recaptcha script tag in your HTML, and reload it. I suppose you can reload it by removing the element from the DOM and the adding it again Cheers!
MolloKhan
MolloKhan
Read Full Comment
Hey |mention:45357| I think you can add the `.turbo-progress-bar` css class in your styles and change any attribute you want Cheers!
MolloKhan
MolloKhan
Read Full Comment
Thank you so much. Turbo was enabled in controllers.json. Now it works fine. That's great!
Delenclos-A
Delenclos-A
Read Full Comment
…the *data-turbo-cach"false"* directly into the div.alert within the turbo-stream from the stimulus controller. I aslo added the attribute to the default div.alert from base.html.twig for not caching other flash messages. Notice, since @hotwired/turbo version >= 7…
Nondediou
Nondediou
Read Full Comment
Hey Infourok, Are you on the latest version of Turbo? Otherwise, you can follow the same workaround we're using in this course. Cheers!
Hey |mention:83916| The AJAX requests made by Turbo does not trigger a full page reload. It will make a normal request to your backend, but it will update only the HTML content that needs to change, so it won't load all of your…
MolloKhan
MolloKhan
Read Full Comment