我目前正在将我的FCE映射到Templavoila。用户有一个输入字段,应输入文本。如果未输入任何文本,则不应显示该元素。因此我有这个Typoscript代码:
10 = TEXT
10.value.field = field_member_tel
10.wrap = T: <span class="team-member-tel-content"> | </span>
10.if.isTrue.field = field_member_tel
10.value.field
无效。我的输出只是T:
。我如何从现场获得价值?
也许我应该提一下,如果这个元素有所不同,那么这个元素就在容器中。
修改
这导致相同的结果:
10 = TEXT
10.value = {field_member_tel}
10.insertData = 1
10.wrap = T: <span class="team-member-tel-content"> | </span>
10.if.isTrue.field = field_member_tel
这是有效的,但我不需要在这里使用typolink:
10 = TEXT
10.typolink.parameter.field = field_member_email
10.typolink.title.field = field_member_name
10.wrap = E: <span class="team-member-email-content"> | </span>
10.if.isTrue.field = field_member_email
答案 0 :(得分:7)
感谢Merec。解决方案如下所示:
10 = TEXT
10.field = field_member_tel
10.wrap = T: <span class="team-member-tel-content"> | </span>
10.if.isTrue.field = field_member_tel