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

f:format.replace does not work if used in inline syntax #1895

Open
christophrunkel opened this issue Jan 29, 2024 · 0 comments
Open

f:format.replace does not work if used in inline syntax #1895

christophrunkel opened this issue Jan 29, 2024 · 0 comments

Comments

@christophrunkel
Copy link

The following syntax used to work in Typo3 11.5 / VHS 6.0.3

<div id="c{data.uid}" class="frame {data.tx_bsdist_customcss} frame-{v:format.replace(substring: '__', content: '{data.frame_class}', replacement: ' ')}>

In Typo3 12.4 this fails, i have set a variable first, then use it inline. Not critical for me, but an awful lot of templates have to be checked and i am not sure, this works in all the cases:

This is the workaround:

<f:variable name="frameclasses"><v:format.replace substring="__" replacement=" ">{data.frame_class}</v:format.replace></f:variable>
<div id="c{data.uid}" class="frame layoutdefault yyy frame-**{frameclasses}**>

Would be nice if the inline syntax would work again.

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