585 search results for Turbo

Hey @Ryan-L! Fantastic! I've heard it said that there's a bit of a gradient with Turbo: A) Turbo Drive: maximum dev happiness + nice UI B) Turbo Frames: medium dev happiness (due to more complex than Drive ...
weaverryan
weaverryan
Read Full Comment
Thank you for your reply ! I had both files with these values: ``` cat assets/controllers.json { "controllers": { "@symfony/ux-turbo": { "turbo-core": { "enabled ...
Hey @Xavier-V! Ah, thanks for posting the detailed code! I can see what I forgot. In `package.json`, add this to `devDependencies`: ``` "@symfony/ux-turbo": "file:vendor/symfony/ux-turbo/assets", ``` This is ...
weaverryan
weaverryan
Read Full Comment
... own stimulus controllers, etc... On the import of the JS entry file into my HTML, I added, for both the back and front parts, a data-turbo-track="reload" attribute so that the browser reloads the page when I switch ...
labfordev
labfordev
Read Full Comment
... I'm using Turbo frames, and I get weird behavior with the back button on the browser. I use turbo-advance to change the URL, and that works well enough, but when I go back, the navbar that isn't in the main frame stops ...
Hey @Fabrice! We'll talk a bit in this tutorial about how Turbo is great, but how you may not be able to enable Turbo Drive immediately in a legacy application. But, Turbo is 2 other pieces (Frames & Drive) and those ...
weaverryan
weaverryan
Read Full Comment
Hey @Xavier-V! Sorry you're having problems - that's no fun! I think it's ok that your assets folder is not in a standard place. This error comes from this line, while trying to initialize Turbo: https://github.com ...
weaverryan
weaverryan
Read Full Comment
Hey |mention:76903| Are you trying to use Turbo with EasyAdmin? I'm afraid EasyAdmin has not added support for Turbo yet, perhaps they will in the future. Cheers! ...
MolloKhan
MolloKhan
Read Full Comment
Hi, I installed turbo and I get this error: `DOMException: Failed to execute 'define' on 'CustomElementRegistry': the name "turbo-frame" has already been used with this registry` ...
Hi Ryan. As far as I understood turbo frame is not SEO friendly right? By the way great Stimulus and Turbo tutorials. ...
This does seem to be the case: https://discuss.hotwired.dev/t/turbo-always-reloading-when-asset-js-css-is-added-with-turbo-track/3179/5 ...
// ... lines 1 - 29
{% block remove %}
<turbo-stream action="replace" target="product-review-{{ id }}">
<template>
{{ include('product/_review.html.twig', {
review: entity,
isRemoved: true
}) }}
</template>
</turbo-stream>
{% endblock %}
See Code Block in Script
66 lines | templates/checkout/checkout.html.twig
// ... lines 1 - 10
<div class="row">
<aside class="col-12 col-lg-4">
<turbo-frame id="cart-sidebar" src="{{ path('_app_cart_product_featured') }}" target="_top">
Loading...
</turbo-frame>
</aside>
// ... lines 18 - 66
See Code Block in Script
32 lines | templates/cart/cart.html.twig
// ... lines 1 - 10
<aside class="col-12 col-md-4 order-2 order-md-1">
<turbo-frame id="cart-sidebar" src="{{ path('_app_cart_product_featured') }}" target="_top">
Loading...
</turbo-frame>
</aside>
// ... lines 16 - 32
See Code Block in Script
32 lines | templates/cart/cart.html.twig
// ... lines 1 - 10
<aside class="col-12 col-md-4 order-2 order-md-1">
<turbo-frame id="cart-sidebar" src="{{ fragment_uri(controller('App\\Controller\\CartController::_cartFeaturedProduct')) }}">
Loading...
</turbo-frame>
</aside>
// ... lines 16 - 32
See Code Block in Script
32 lines | templates/cart/cart.html.twig
// ... lines 1 - 10
<aside class="col-12 col-md-4 order-2 order-md-1">
<turbo-frame id="cart-sidebar" src="{{ path('_app_cart_product_featured') }}">
Loading...
</turbo-frame>
</aside>
// ... lines 16 - 32
See Code Block in Script
33 lines | config/packages/webpack_encore.yaml
// ... lines 1 - 6
# Set attributes that will be rendered on all script and link tags
script_attributes:
defer: true
'data-turbo-track': reload
link_attributes:
'data-turbo-track': reload
// ... lines 13 - 33
See Code Block in Script
26 lines | templates/voyage/new.html.twig
// ... lines 1 - 4
{% block body %}
<turbo-frame id="modal">
<div class="m-4 p-4 bg-gray-800 rounded-lg">
// ... lines 8 - 22
</div>
</turbo-frame>
{% endblock %}
See Code Block in Script
<turbo-stream action="append" target="flash-container">
<template>{{ include('_flashes.html.twig') }}</template>
</turbo-stream>
{% for stream in app.flashes('stream') %}
{{ stream|raw }}
{% endfor %}
See Code Block in Script
Hi all, I have been trying to use the DynamicFormBuilder within a Turbo Frame. Form submission works , but when I want to dynamically show form fields, the new fields are not shown. I see the request being sent in the ...