我已经在页面模板中定义了FAL资源。
<flux:field.inline.fal name="imageLinkboxMenu"
clear="true"
label="FAL image"
showThumbs="true"
allowedExtensions="jpg,jpeg,gif,png"
maxItems="1"/>现在,我想要显示这个图像在一个圆锥形元素,它引用这个页面。我无法获得页面资源。我试过
<flux:form.data field="tx_fed_page_flexform" table="pages" uid="{root}" as="fluxPageData">
{fluxPageData.imageLinkboxMenu}
</flux:form.data>它只返回1。我还试图通过v:page.resource.fal访问该字段,从我的角度来看,它无法工作,因为这并不能从XML提取数据。
<v:resource.image identifier="{v:page.resources.fal(field: 'imageLinkboxMenu') -> v:iterator.extract(key: 'id') -> v:iterator.first()}" as="resources" />有什么提示吗?
发布于 2014-07-14 12:00:31
经过一些试验和错误,我终于得到了工作。诀窍是增加页面的uid。所以我最后的结果是
<v:resource.image identifier="{v:page.resources.fal(field: 'imageLinkboxLogo', uid: '{root}') -> v:iterator.extract(key: 'id')}" />发布于 2016-04-29 09:07:02
我现在不知道为什么,但它不适用于一些翻译页面。我收到空旷的区域。在这里,https://fluidtypo3.org/viewhelpers/flux/master/Field/Inline/FalViewHelper.html我们看到了使用警告。因此,我建议您也可以使用<flux:field.file>。
https://stackoverflow.com/questions/24676787
复制相似问题