Message Boards

Collection Displays and Collection Pages will not display collections

Devon Regular, modified 2 Years ago.

Collection Displays and Collection Pages will not display collections

New Member Posts: 6 Join Date: 9/24/21 Recent Posts

Liferay 7.3 ga6 (no option to use any other version I need to use this one).

I am trying to make a dynamic gallery. I have been having trouble getting Liferay to be dynamic, and if you want more information on the gallery and my dynamic problems, you can read my previous question: https://liferay.dev/ask/questions/development/best-way-to-display-dynamic-content-

I have been informed collection fragment displays could be the answer, so I followed suit. 

 

I created a collection called "Gallery Images" that collects all things that are under the category "Gallery Image" and I currently have two images uploaded through the "Documents and Media" section categorized as a gallery image. I then tried two methods to try and make them display:

First I tried the Collection Fragment method where I created a content page, drag and dropped the fragment into the page and started to set it up by selecting my gallery images collection, and then keeping the width and number shown as default. I put an image fragment inside the collection display and try to map to the image field in the collection and the only option I'm given is "User Profile."

I tried troubleshooting this, and have even tried mapping it differently; using different grids; and in general trying every option I could (even tried modifying the pictures, collections, and categories). 

I then tried to just show the title of the images, and although I am given more mapping options, none of them do anything. The page remains blank.

 

I then tried to use a collection page, and same thing --nothing displays. However, at the top of this one it does say "2 items" next to "Collection", which is telling me that my pictures are being put in the collection!

So why won't they display anything?