留言板
ADT for Media gallery Portlet
krishna mohan mathakala,修改在7 年前。
ADT for Media gallery Portlet
Junior Member 帖子: 68 加入日期: 12-9-8 最近的帖子
Hi I want to create ADT for my media gallery portlet. My requirement is as below
I have a folder called Root which internally contains 2 more folders(Folder 1 with some images and Folder 2 with some images) .
With my ADT I want to display first image from folder1 and first image from folder 2 on default media gallery portlet.
If the user click on the first image then navigate the user to filder 1 and display all the images in that folder and same for the folder2.
I am not able to get the root folder id from the service.
I tried the following way but not able to get the root folder id.
Is there any way to get the root folder id ?
Thanks in advance.
I have a folder called Root which internally contains 2 more folders(Folder 1 with some images and Folder 2 with some images) .
With my ADT I want to display first image from folder1 and first image from folder 2 on default media gallery portlet.
If the user click on the first image then navigate the user to filder 1 and display all the images in that folder and same for the folder2.
I am not able to get the root folder id from the service.
I tried the following way but not able to get the root folder id.
#set ($folderLocalService =$serviceLocator.findService("com.liferay.portlet.documentlibrary.service.DLFolderLocalService"))
#set ($folderId = $folderLocalService.getFolder($groupId,0,"Root").getFolderId())
Is there any way to get the root folder id ?
Thanks in advance.
Eduardo P. García,修改在3 年前。
RE: ADT for Media gallery Portlet
Regular Member 帖子: 157 加入日期: 12-3-16 最近的帖子
Hi Krishna,
The default root folder Id is 0, as defined in DLFolderConstants.java. This folder does not actually "exist" (i.e. you won't find it with the service).
Regards
The default root folder Id is 0, as defined in DLFolderConstants.java. This folder does not actually "exist" (i.e. you won't find it with the service).
Regards