Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Azamat Sarsenbayev
Another image for a folder in image gallery
July 25, 2011 9:37 PM
Answer

Azamat Sarsenbayev

Rank: Junior Member

Posts: 34

Join Date: June 15, 2011

Recent Posts

Hi friends!

I want to use folders in image gallery like albums.
And I want instead of folder.png image put the first(or m.b any) image(thumbnail of image) that folder contains.(if no images default image will be used.)

There is what I want to achieve in an attached picture.
Attachments:
Jignesh Vachhani
RE: Another image for a folder in image gallery
July 25, 2011 10:52 PM
Answer

Jignesh Vachhani

Rank: Liferay Master

Posts: 780

Join Date: March 10, 2008

Recent Posts

you can remove or comment out that folder image code and you will have folder id so you can get all the images of that folder.
So just get first small image and show here.
Azamat Sarsenbayev
RE: Another image for a folder in image gallery
July 25, 2011 11:01 PM
Answer

Azamat Sarsenbayev

Rank: Junior Member

Posts: 34

Join Date: June 15, 2011

Recent Posts

Thank you Jignesh.
But how can I get image from a folder?
Jignesh Vachhani
RE: Another image for a folder in image gallery
July 25, 2011 11:06 PM
Answer

Jignesh Vachhani

Rank: Liferay Master

Posts: 780

Join Date: March 10, 2008

Recent Posts

you can use below method code for that :

IGImageLocalServiceUtil.getImages(long groupId, long folderId, int start, int end, OrderByComparator obc);

so you will get list of images just get first image to show as thumbnail .
Azamat Sarsenbayev
RE: Another image for a folder in image gallery
July 26, 2011 2:10 AM
Answer

Azamat Sarsenbayev

Rank: Junior Member

Posts: 34

Join Date: June 15, 2011

Recent Posts

Thanks for help!!!
Jignesh Vachhani
RE: Another image for a folder in image gallery
July 26, 2011 2:19 AM
Answer

Jignesh Vachhani

Rank: Liferay Master

Posts: 780

Join Date: March 10, 2008

Recent Posts

Did you get your work done ?
Azamat Sarsenbayev
RE: Another image for a folder in image gallery
July 26, 2011 2:20 AM
Answer

Azamat Sarsenbayev

Rank: Junior Member

Posts: 34

Join Date: June 15, 2011

Recent Posts

Yeap =))
jorge girao
RE: Another image for a folder in image gallery
December 7, 2011 12:13 PM
Answer

jorge girao

Rank: Junior Member

Posts: 41

Join Date: December 21, 2009

Recent Posts

I want to have something like that, I'm going to start developing some portlet like this one, like a image gallery viewer, but where to start? Any help?

Thank you!
Raffael Tregilgas
RE: Another image for a folder in image gallery
November 27, 2012 5:53 AM
Answer

Raffael Tregilgas

Rank: New Member

Posts: 7

Join Date: April 23, 2012

Recent Posts

hi
is there a method like this in liferay 6.1.1?
thanks for the help
raffael