Commit d37698cb authored by Alexis Piéplu's avatar Alexis Piéplu
Browse files

Add display all documents from folder

parent 1c1b24a0
......@@ -158,6 +158,23 @@ Last modified date : <strong>$fileEntry.getModifiedDate()</strong>
```
## Afficher tout les documents d'un dossier
`$folderId` est un `templateNode`, id de dossier.
```html
#set($service = $serviceLocator.findService("com.liferay.portlet.documentlibrary.service.DLFileEntryLocalService"))
#set($gid = $getterUtil.getLong($request.get("theme-display").get("scope-group-id")))
#set($fid = $getterUtil.getLong($folderId.getData()))
#set($files = $service.getFileEntries($gid, $fid))
#foreach($doc in $files)
#set($uet = $httpUtil.encodeURL($htmlUtil.unescape($doc.getTitle())))
<a href="/documents/$gid/$fid/$uet">$doc.getTitle()</a>
#end
```
---
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment