Skip to content
This repository has been archived by the owner on Dec 13, 2023. It is now read-only.

How to render fluid data to javascript #4

Closed
fgeierst opened this issue Apr 30, 2023 · 2 comments
Closed

How to render fluid data to javascript #4

fgeierst opened this issue Apr 30, 2023 · 2 comments

Comments

@fgeierst
Copy link
Owner

I have some trouble to render complex data (like an array of menu items) with Fluid inside of JavaScript syntax.

image
https://github.com/fgeierst/typo3-11-tailwind-demo/blob/feature/render-fluid-data-to-js/packages/tailwind_demo_base/Resources/Private/Components/Navigation/Navigation.html

@s2b
Copy link

s2b commented May 17, 2023

Did you try including menu in the Fluid object?

<div
  id="menu"
  data-reactive
  v-scope='{f:format.json(value: {menu: menu}) -> f:format.raw()}'
>
...
</div>

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

No branches or pull requests

2 participants