Render image in fluid template if it exists?
问题 How can I use f:if to see if an image exists before trying to render it? I have tried the following without success: {f:if(condition: page.files.0, then: ' style="background-image:url({f:uri.image(image:page.files.0, width:300c, height:200c)}"')} <f:if condition="{page.files.0}"> style="background-image:url({f:uri.image(image:page.files.0, width:300c, height:200c)}" </f:if> It works if there is an image but breaks the element when there is not. 回答1: When I want to add an image url to the