Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/qt/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ssis/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何获取一个可重复的文本字段liferay7 Freemarker_Liferay_Freemarker_Liferay 7 - Fatal编程技术网

如何获取一个可重复的文本字段liferay7 Freemarker

如何获取一个可重复的文本字段liferay7 Freemarker,liferay,freemarker,liferay-7,Liferay,Freemarker,Liferay 7,我创建了一个Web内容Dsiplay(文本作为结构中的可重复字段)。 在结构模板中,我希望只有第三个元素 我试过了 ${Text.getSides()[3].getData()} 但它不起作用 我正在使用Liferay-7和Freemarker作为结构模板 谢谢索引字段以0开头,因此第三个元素的解决方案是: ${Text.getSides()[2].getData()} 请注意,类似于${Text.sibbines[2].data}的东西也应该可以工作,而且更好。

我创建了一个Web内容Dsiplay文本作为结构中的可重复字段)。 在结构模板中,我希望只有第三个元素

我试过了

${Text.getSides()[3].getData()}

但它不起作用

我正在使用Liferay-7Freemarker作为结构模板


谢谢

索引字段以0开头,因此第三个元素的解决方案是:

${Text.getSides()[2].getData()}


请注意,类似于
${Text.sibbines[2].data}
的东西也应该可以工作,而且更好。