Web内容显示文档库中的所有文件
我正在尝试使用 Web 内容显示来显示文档库特定文件夹中的所有文件。
我想继续自定义文件夹的选择。
您是否知道模板中是否存在指向文件夹而不是文档库中的特定字段的动态元素?
如果不可能有人知道另一种方法吗?
预先感
谢萨布丽娜
I'm trying to use a Web content Display to show all the files in a particular folder of document library.
I would like to keep customize the choice of the folder.
Do you know if exist a dynamic element in template that point to a folder not to a specific field in the document library?
If is not possible someone know a different way to do that?
thanks in advance
Sabrina
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以创建包含名为“folderId”的folderId 文本字段的结构。
然后创建模板
通过该模板/结构创建文章并输入要显示的文件夹 ID。添加显示本文的“Web 内容显示”portlet。
更新:
对于 Liferay 6.1 方法签名已更改,
因此对于 liferay 6.1 您应该将调用更改为至少
或更改开始/结束/排序。
You can create structure that holds text field for folderId named "folderId".
Than create template
Create article by that template/structure and enter folder id that you want to display. Add "Web content display" portlet that displays this article.
UPDATE:
For Liferay 6.1 method signature was changed and is
So for liferay 6.1 you should change call to be at least
or change for start/end/sort.
您可以使用文档库显示 portlet 来完成此操作。
You could use the Document Library Display portlet to accomplish this.