简体   繁体   English

f:uri.image内联-Viewhelper不起作用

[英]f:uri.image inline-Viewhelper does not work

I am trying to access an imageurl via inlinecondition in fluid. 我正在尝试通过inlinecondition来访问imageurl

The none inlineversion works well and returns the URI of that image: none inlineversion效果很好,并返回该图像的URI:

<f:uri.image image="{data.image.0}" />

returns: 返回:

fileadmin/user_upload/jumbotron.jpg 

This one doesn't: 这不是:

{f:uri.image(image:data.image.0)}

I have tried different versions with {}, without, with '' without ... 我尝试使用{},不带'',不带...

My environment is: TYPO3 8.2 (as I can't update cause extensions I need are only available till this version for now) 我的环境是:TYPO3 8.2(因为我无法更新原因扩展名,因此仅在此版本之前可用)

Can someone please help me? 有人可以帮帮我吗?

Seems this was a bug in 8.2 - After updating to 8.4 it works like charm. 看来这是8.2中的错误-更新到8.4后,它的工作原理就像魅力。

This code works: 此代码有效:

{f:uri.image(image:data.image.0)}

尝试使用{f:uri.image(image:'{data.image.0}')} ,请注意转义

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM