Symfony UX: Turbo
Frame Redirecting & Dynamic Frame Targets
  Start your All-Access Pass to unlock this challenge
Buy Access Login

Challenge 1 / 1

On our cart page, we have a <turbo-frame id="cart-summary"> that renders a short list of the items in our cart. This works great! But now, in our base layout, we want to render a link on our sidebar that, on click, loads this "cart summary" into the sidebar:

<turbo-frame id="sidebar">
    <!-- ... -->

    <a href="{{ path('app_cart') }}">Show Cart Summary</a>
</turbo>

Unfortunately, when we try this, we get an error because the turbo-frame looks for a sidebar frame on the cart page. How could me modify the cart page to get this to work?

Skip challenges and go to theNext Chapter

Turn Challenges Off?

All further challenges will be skipped automatically.
You can re-enable challenges at any time on this page or from your account page.