Message Boards

How to add image gallery?

Tiago Machado, modified 5 Years ago.

How to add image gallery?

Junior Member Posts: 59 Join Date: 2/21/19 Recent Posts
Hello again friends,

I searched a lot but I didn't find how to make a galley view in LR, I have seen this topic:https://community.liferay.com/forums/-/message_boards/message/93541478
but the code doesn't work, I want a simple image view like the guy in the last post shows with an image.

Simple as having some small images, and when I click it expands showing it bigger, being able to click to the next or to the one behind, no slide time passing images, just clicks. well, basically like the imdb image view...

​​​​​​​thanks a lot for the time.
thumbnail
Andrew Jardine, modified 5 Years ago.

RE: How to add image gallery?

Liferay Legend Posts: 2416 Join Date: 12/22/10 Recent Posts
I don't think there is anything out of the box like that. From where I am sitting you have two options really. 

1. Create a custom portlet to meet your needs 

2. Use Web Content Structures to manage the content items, and then use an Asset Publisher with a custom ADT Template to source the images and include the logic for rendering / JS for the slides and clicks. 

.. maybe look into something like OWL Carousel if you are unfamiliar with how to build the custom code/JS to achieve what you are looking form. Their documentation is pretty straight forward and simple to use. 
Tiago Machado, modified 5 Years ago.

RE: How to add image gallery?

Junior Member Posts: 59 Join Date: 2/21/19 Recent Posts
sorry for the answer delay, thank you very much for your answer, i managed to do it with bootstrap. thanks a lot